C# Class XnaGeometry.MathHelper

显示文件 Open project: kestrelm/CreatureDemos

Public Methods

Method Description
Barycentric ( double value1, double value2, double value3, double amount1, double amount2 ) : double
CatmullRom ( double value1, double value2, double value3, double value4, double amount ) : double
Clamp ( double value, double min, double max ) : double
Distance ( double value1, double value2 ) : double
Hermite ( double value1, double tangent1, double value2, double tangent2, double amount ) : double
IsPowerOfTwo ( int value ) : bool
Lerp ( double value1, double value2, double amount ) : double
Max ( double value1, double value2 ) : double
Min ( double value1, double value2 ) : double
SmoothStep ( double value1, double value2, double amount ) : double
ToDegrees ( double radians ) : double
ToRadians ( double degrees ) : double
WrapAngle ( double angle ) : double

Method Details

Barycentric() public static method

public static Barycentric ( double value1, double value2, double value3, double amount1, double amount2 ) : double
value1 double
value2 double
value3 double
amount1 double
amount2 double
return double

CatmullRom() public static method

public static CatmullRom ( double value1, double value2, double value3, double value4, double amount ) : double
value1 double
value2 double
value3 double
value4 double
amount double
return double

Clamp() public static method

public static Clamp ( double value, double min, double max ) : double
value double
min double
max double
return double

Distance() public static method

public static Distance ( double value1, double value2 ) : double
value1 double
value2 double
return double

Hermite() public static method

public static Hermite ( double value1, double tangent1, double value2, double tangent2, double amount ) : double
value1 double
tangent1 double
value2 double
tangent2 double
amount double
return double

IsPowerOfTwo() public static method

public static IsPowerOfTwo ( int value ) : bool
value int
return bool

Lerp() public static method

public static Lerp ( double value1, double value2, double amount ) : double
value1 double
value2 double
amount double
return double

Max() public static method

public static Max ( double value1, double value2 ) : double
value1 double
value2 double
return double

Min() public static method

public static Min ( double value1, double value2 ) : double
value1 double
value2 double
return double

SmoothStep() public static method

public static SmoothStep ( double value1, double value2, double amount ) : double
value1 double
value2 double
amount double
return double

ToDegrees() public static method

public static ToDegrees ( double radians ) : double
radians double
return double

ToRadians() public static method

public static ToRadians ( double degrees ) : double
degrees double
return double

WrapAngle() public static method

public static WrapAngle ( double angle ) : double
angle double
return double