C# Class SplineMaths, ProjectPhoenix

Inheritance: MonoBehaviour
Mostra file Open project: Alx666/ProjectPhoenix Class Usage Examples

Public Methods

Method Description
CalculateBezierPoint ( float t, Vector2 p0, Vector2 p1, Vector2 p2, Vector2 p3 ) : Vector2
CalculateBezierPoint ( float t, Vector3 p0, Vector3 p1, Vector3 p2, Vector3 p3 ) : Vector3
CalculateCubicRotation ( Quaternion p, Quaternion a, Quaternion b, Quaternion q, float t ) : Quaternion
CalculateHermite ( float val ) : float
ClampAngle ( float angle ) : float
ClampAngle ( float angle, float from, float to ) : float
GetQuatConjugate ( Quaternion q ) : Quaternion
Nlerp ( Quaternion p, Quaternion q, float t ) : Quaternion
Normalize ( Quaternion q ) : Quaternion
Slerp ( Quaternion p, Quaternion q, float t ) : Quaternion
SquadTangent ( Quaternion before, Quaternion center, Quaternion after ) : Quaternion
exp ( Quaternion q ) : Quaternion
lnDif ( Quaternion a, Quaternion b ) : Quaternion
log ( Quaternion q ) : Quaternion

Method Details

CalculateBezierPoint() public static method

public static CalculateBezierPoint ( float t, Vector2 p0, Vector2 p1, Vector2 p2, Vector2 p3 ) : Vector2
t float
p0 Vector2
p1 Vector2
p2 Vector2
p3 Vector2
return Vector2

CalculateBezierPoint() public static method

public static CalculateBezierPoint ( float t, Vector3 p0, Vector3 p1, Vector3 p2, Vector3 p3 ) : Vector3
t float
p0 Vector3
p1 Vector3
p2 Vector3
p3 Vector3
return Vector3

CalculateCubicRotation() public static method

public static CalculateCubicRotation ( Quaternion p, Quaternion a, Quaternion b, Quaternion q, float t ) : Quaternion
p Quaternion
a Quaternion
b Quaternion
q Quaternion
t float
return Quaternion

CalculateHermite() public static method

public static CalculateHermite ( float val ) : float
val float
return float

ClampAngle() public static method

public static ClampAngle ( float angle ) : float
angle float
return float

ClampAngle() public static method

public static ClampAngle ( float angle, float from, float to ) : float
angle float
from float
to float
return float

GetQuatConjugate() public static method

public static GetQuatConjugate ( Quaternion q ) : Quaternion
q Quaternion
return Quaternion

Nlerp() public static method

public static Nlerp ( Quaternion p, Quaternion q, float t ) : Quaternion
p Quaternion
q Quaternion
t float
return Quaternion

Normalize() public static method

public static Normalize ( Quaternion q ) : Quaternion
q Quaternion
return Quaternion

Slerp() public static method

public static Slerp ( Quaternion p, Quaternion q, float t ) : Quaternion
p Quaternion
q Quaternion
t float
return Quaternion

SquadTangent() public static method

public static SquadTangent ( Quaternion before, Quaternion center, Quaternion after ) : Quaternion
before Quaternion
center Quaternion
after Quaternion
return Quaternion

exp() public static method

public static exp ( Quaternion q ) : Quaternion
q Quaternion
return Quaternion

lnDif() public static method

public static lnDif ( Quaternion a, Quaternion b ) : Quaternion
a Quaternion
b Quaternion
return Quaternion

log() public static method

public static log ( Quaternion q ) : Quaternion
q Quaternion
return Quaternion