Struct FloatAngle
- Namespace
- LiteEntitySystem.Extensions
- Assembly
- LiteEntitySystem.dll
Float angle in degress with correct interpolation and overlaps
public struct FloatAngle
Constructors
FloatAngle(float)
public FloatAngle(float value)
Parameters
value
float
Fields
Deg2Rad
public const float Deg2Rad = 0.017453292
Field Value
Degrees
public float Degrees
Field Value
PI
public const float PI = 3.1415927
Field Value
Rad2Deg
public const float Rad2Deg = 57.29578
Field Value
Properties
Normalized
public FloatAngle Normalized { get; }
Property Value
Radians
public float Radians { get; }
Property Value
Methods
Cos()
public float Cos()
Returns
FromRadians(float)
public static FloatAngle FromRadians(float inputRotation)
Parameters
inputRotation
float
Returns
Lerp(FloatAngle, FloatAngle, float)
public static FloatAngle Lerp(FloatAngle a, FloatAngle b, float t)
Parameters
a
FloatAngleb
FloatAnglet
float
Returns
Normalize()
public void Normalize()
Sin()
public float Sin()
Returns
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.
Operators
implicit operator float(FloatAngle)
public static implicit operator float(FloatAngle value)
Parameters
value
FloatAngle
Returns
implicit operator FloatAngle(float)
public static implicit operator FloatAngle(float degrees)
Parameters
degrees
float