UniVRM/Assets/VRM10/Runtime/Components/LookAt/LookAtEyeDirection.cs
ousttrue f514e89962 LookAtEyeDirection を Yaw, Pitch 二値に縮小。
左目と右目の独立はまたの機会に・・・
2023-08-18 18:13:02 +09:00

26 lines
572 B
C#

namespace UniVRM10
{
public readonly struct LookAtEyeDirection
{
public float Yaw { get; }
/// <summary>
/// Pitch of LeftEye
/// </summary>
public float Pitch { get; }
public LookAtEyeDirection(float yaw, float pitch)
{
Yaw = yaw;
Pitch = pitch;
}
public static LookAtEyeDirection Multiply(LookAtEyeDirection a, float b)
{
return new LookAtEyeDirection(
a.Yaw * b,
a.Pitch * b
);
}
}
}