C# Class SplineMaths, ProjectPhoenix

Inheritance: MonoBehaviour
Afficher le fichier Open project: Alx666/ProjectPhoenix Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public static CalculateBezierPoint ( float t, Vector2 p0, Vector2 p1, Vector2 p2, Vector2 p3 ) : Vector2
t float
p0 Vector2
p1 Vector2
p2 Vector2
p3 Vector2
Résultat Vector2

CalculateBezierPoint() public static méthode

public static CalculateBezierPoint ( float t, Vector3 p0, Vector3 p1, Vector3 p2, Vector3 p3 ) : Vector3
t float
p0 Vector3
p1 Vector3
p2 Vector3
p3 Vector3
Résultat Vector3

CalculateCubicRotation() public static méthode

public static CalculateCubicRotation ( Quaternion p, Quaternion a, Quaternion b, Quaternion q, float t ) : Quaternion
p Quaternion
a Quaternion
b Quaternion
q Quaternion
t float
Résultat Quaternion

CalculateHermite() public static méthode

public static CalculateHermite ( float val ) : float
val float
Résultat float

ClampAngle() public static méthode

public static ClampAngle ( float angle ) : float
angle float
Résultat float

ClampAngle() public static méthode

public static ClampAngle ( float angle, float from, float to ) : float
angle float
from float
to float
Résultat float

GetQuatConjugate() public static méthode

public static GetQuatConjugate ( Quaternion q ) : Quaternion
q Quaternion
Résultat Quaternion

Nlerp() public static méthode

public static Nlerp ( Quaternion p, Quaternion q, float t ) : Quaternion
p Quaternion
q Quaternion
t float
Résultat Quaternion

Normalize() public static méthode

public static Normalize ( Quaternion q ) : Quaternion
q Quaternion
Résultat Quaternion

Slerp() public static méthode

public static Slerp ( Quaternion p, Quaternion q, float t ) : Quaternion
p Quaternion
q Quaternion
t float
Résultat Quaternion

SquadTangent() public static méthode

public static SquadTangent ( Quaternion before, Quaternion center, Quaternion after ) : Quaternion
before Quaternion
center Quaternion
after Quaternion
Résultat Quaternion

exp() public static méthode

public static exp ( Quaternion q ) : Quaternion
q Quaternion
Résultat Quaternion

lnDif() public static méthode

public static lnDif ( Quaternion a, Quaternion b ) : Quaternion
a Quaternion
b Quaternion
Résultat Quaternion

log() public static méthode

public static log ( Quaternion q ) : Quaternion
q Quaternion
Résultat Quaternion