Table of Contents

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

float

Degrees

public float Degrees

Field Value

float

PI

public const float PI = 3.1415927

Field Value

float

Rad2Deg

public const float Rad2Deg = 57.29578

Field Value

float

Properties

Normalized

public FloatAngle Normalized { get; }

Property Value

FloatAngle

Radians

public float Radians { get; }

Property Value

float

Methods

Cos()

public float Cos()

Returns

float

FromRadians(float)

public static FloatAngle FromRadians(float inputRotation)

Parameters

inputRotation float

Returns

FloatAngle

Lerp(FloatAngle, FloatAngle, float)

public static FloatAngle Lerp(FloatAngle a, FloatAngle b, float t)

Parameters

a FloatAngle
b FloatAngle
t float

Returns

FloatAngle

Normalize()

public void Normalize()

Sin()

public float Sin()

Returns

float

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

float

implicit operator FloatAngle(float)

public static implicit operator FloatAngle(float degrees)

Parameters

degrees float

Returns

FloatAngle