C# Class idTech4.Extensions

Datei anzeigen Open project: iainmckay/idtech4.net

Public Methods

Method Description
Compare ( this v2, Vector3 v, float epsilon ) : bool
Distance ( this plane, Vector3 point ) : float
FitThroughPoint ( this plane, Vector3 point ) : void
FixDegenerateNormal ( this v ) : bool
FromPoints ( this plane, Vector3 p1, Vector3 p2, Vector3 p3, bool fixDegenerate = true ) : bool
Get ( this v, int index ) : float
Normalize ( this plane, bool fixDegenerate ) : float
ToAngles ( this m ) : idAngles
ToMatrix ( this q ) : Matrix

Method Details

Compare() public static method

public static Compare ( this v2, Vector3 v, float epsilon ) : bool
v2 this
v Vector3
epsilon float
return bool

Distance() public static method

public static Distance ( this plane, Vector3 point ) : float
plane this
point Vector3
return float

FitThroughPoint() public static method

public static FitThroughPoint ( this plane, Vector3 point ) : void
plane this
point Vector3
return void

FixDegenerateNormal() public static method

public static FixDegenerateNormal ( this v ) : bool
v this
return bool

FromPoints() public static method

public static FromPoints ( this plane, Vector3 p1, Vector3 p2, Vector3 p3, bool fixDegenerate = true ) : bool
plane this
p1 Vector3
p2 Vector3
p3 Vector3
fixDegenerate bool
return bool

Get() public static method

public static Get ( this v, int index ) : float
v this
index int
return float

Normalize() public static method

public static Normalize ( this plane, bool fixDegenerate ) : float
plane this
fixDegenerate bool
return float

ToAngles() public static method

public static ToAngles ( this m ) : idAngles
m this
return idTech4.Math.idAngles

ToMatrix() public static method

public static ToMatrix ( this q ) : Matrix
q this
return Matrix