namespace UniVRM10 { public readonly struct LookAtEyeDirection { /// /// Yaw of LeftEye /// public float LeftYaw { get; } /// /// Pitch of LeftEye /// public float LeftPitch { get; } /// /// NOTE: 何故か使われていない /// Yaw of RightEye /// public float RightYaw { get; } /// /// NOTE: 何故か使われていない /// Pitch of RightEye /// public float RightPitch { get; } public LookAtEyeDirection(float leftYaw, float leftPitch, float rightYaw, float rightPitch) { LeftYaw = leftYaw; LeftPitch = leftPitch; RightYaw = rightYaw; RightPitch = rightPitch; } public static LookAtEyeDirection Multiply(LookAtEyeDirection a, float b) { return new LookAtEyeDirection( a.LeftYaw * b, a.LeftPitch * b, a.RightYaw * b, a.RightPitch * b ); } } }