Exemplo n.º 1
0
 public static Radians SmoothDampAngle(
     Radians current,
     Radians target,
     ref float currentVelocity,
     float smoothTime,
     float maxSpeed,
     float deltaTime)
 {
     return(new Degrees(
                Mathf.SmoothDampAngle(
                    current.FloatAsDegrees(),
                    target.FloatAsDegrees(),
                    ref currentVelocity,
                    smoothTime,
                    maxSpeed,
                    deltaTime)).AsRadians());
 }
Exemplo n.º 2
0
 public Radians(Radians angle)
 {
     this.value = angle.FloatAsRadians();
 }
Exemplo n.º 3
0
 public Degrees(Radians angle)
 {
     this.value = angle.FloatAsDegrees();
 }
Exemplo n.º 4
0
 public static float Sin(Radians angle)
 {
     return(Mathf.Sin(angle.FloatAsRadians()));
 }
Exemplo n.º 5
0
 public static Radians MoveTowardsAngle(Radians current, Radians target, float maxDelta)
 {
     return(new Degrees(Mathf.MoveTowardsAngle(current.FloatAsDegrees(), target.FloatAsDegrees(), maxDelta)).AsRadians());
 }
Exemplo n.º 6
0
 public static Radians LerpAngle(Radians minAngle, Radians maxAngle, float time)
 {
     return(new Degrees(Mathf.LerpAngle(minAngle.FloatAsDegrees(), maxAngle.FloatAsDegrees(), time)).AsRadians());
 }
Exemplo n.º 7
0
 public static Radians DeltaAngle(Radians current, Radians target)
 {
     return(new Degrees(Mathf.DeltaAngle(current.FloatAsDegrees(), target.FloatAsDegrees())).AsRadians());
 }
Exemplo n.º 8
0
 public static float Cos(Radians angle)
 {
     return(Mathf.Cos(angle.FloatAsRadians()));
 }