C# Class CjLib.VectorUtil

ファイルを表示 Open project: SuomiKP31/Project-Impetus Class Usage Examples

Public Methods

Method Description
CatmullRom ( Vector3 p0, Vector3 p1, Vector3 p2, Vector3 p3, float t ) : Vector3
FindOrthogonal ( Vector3 v ) : Vector3
FormOrthogonalBasis ( Vector3 v, Vector3 &a, Vector3 &b ) : void
Integrate ( Vector3 x, Vector3 v, float dt ) : Vector3
NormalizeSafe ( Vector3 v, Vector3 fallback ) : Vector3
Rotate2D ( Vector3 v, float deg ) : Vector3
Slerp ( Vector3 a, Vector3 b, float t ) : Vector3

Method Details

CatmullRom() public static method

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

FindOrthogonal() public static method

public static FindOrthogonal ( Vector3 v ) : Vector3
v Vector3
return Vector3

FormOrthogonalBasis() public static method

public static FormOrthogonalBasis ( Vector3 v, Vector3 &a, Vector3 &b ) : void
v Vector3
a Vector3
b Vector3
return void

Integrate() public static method

public static Integrate ( Vector3 x, Vector3 v, float dt ) : Vector3
x Vector3
v Vector3
dt float
return Vector3

NormalizeSafe() public static method

public static NormalizeSafe ( Vector3 v, Vector3 fallback ) : Vector3
v Vector3
fallback Vector3
return Vector3

Rotate2D() public static method

public static Rotate2D ( Vector3 v, float deg ) : Vector3
v Vector3
deg float
return Vector3

Slerp() public static method

public static Slerp ( Vector3 a, Vector3 b, float t ) : Vector3
a Vector3
b Vector3
t float
return Vector3