C# Class GameFramework.Geometry

Mostra file Open project: dreamanlan/CSharpGameFramework

Public Methods

Method Description
CalcLength ( IList pts ) : float
CalcLength ( IList pts ) : float
DegreeToRadian ( float dir ) : float
Distance ( System.Vector2 p1, System.Vector2 p2 ) : float
Distance ( System.Vector3 p1, System.Vector3 p2 ) : float
DistanceSquare ( System.Vector2 p1, System.Vector2 p2 ) : float
DistanceSquare ( System.Vector3 p1, System.Vector3 p2 ) : float
DistanceSquare ( float x1, float y1, float x2, float y2 ) : float
IsInvalid ( System.Vector2 pos ) : bool
IsInvalid ( System.Vector3 pos ) : bool
IsInvalid ( float v ) : bool
IsSameDouble ( double v1, double v2 ) : bool
IsSameFloat ( float v1, float v2 ) : bool
IsSamePoint ( System.Vector2 p1, System.Vector2 p2 ) : bool
IsSamePoint ( System.Vector3 p1, System.Vector3 p2 ) : bool
Max ( float a, float b ) : float
Min ( float a, float b ) : float
RadianToDegree ( float dir ) : float

Method Details

CalcLength() public static method

public static CalcLength ( IList pts ) : float
pts IList
return float

CalcLength() public static method

public static CalcLength ( IList pts ) : float
pts IList
return float

DegreeToRadian() public static method

public static DegreeToRadian ( float dir ) : float
dir float
return float

Distance() public static method

public static Distance ( System.Vector2 p1, System.Vector2 p2 ) : float
p1 System.Vector2
p2 System.Vector2
return float

Distance() public static method

public static Distance ( System.Vector3 p1, System.Vector3 p2 ) : float
p1 System.Vector3
p2 System.Vector3
return float

DistanceSquare() public static method

public static DistanceSquare ( System.Vector2 p1, System.Vector2 p2 ) : float
p1 System.Vector2
p2 System.Vector2
return float

DistanceSquare() public static method

public static DistanceSquare ( System.Vector3 p1, System.Vector3 p2 ) : float
p1 System.Vector3
p2 System.Vector3
return float

DistanceSquare() public static method

public static DistanceSquare ( float x1, float y1, float x2, float y2 ) : float
x1 float
y1 float
x2 float
y2 float
return float

IsInvalid() public static method

public static IsInvalid ( System.Vector2 pos ) : bool
pos System.Vector2
return bool

IsInvalid() public static method

public static IsInvalid ( System.Vector3 pos ) : bool
pos System.Vector3
return bool

IsInvalid() public static method

public static IsInvalid ( float v ) : bool
v float
return bool

IsSameDouble() public static method

public static IsSameDouble ( double v1, double v2 ) : bool
v1 double
v2 double
return bool

IsSameFloat() public static method

public static IsSameFloat ( float v1, float v2 ) : bool
v1 float
v2 float
return bool

IsSamePoint() public static method

public static IsSamePoint ( System.Vector2 p1, System.Vector2 p2 ) : bool
p1 System.Vector2
p2 System.Vector2
return bool

IsSamePoint() public static method

public static IsSamePoint ( System.Vector3 p1, System.Vector3 p2 ) : bool
p1 System.Vector3
p2 System.Vector3
return bool

Max() public static method

public static Max ( float a, float b ) : float
a float
b float
return float

Min() public static method

public static Min ( float a, float b ) : float
a float
b float
return float

RadianToDegree() public static method

public static RadianToDegree ( float dir ) : float
dir float
return float