Gravity Engine 12.0
Unity Asset for Gravity
Loading...
Searching...
No Matches
GEMath Class Reference

Static Public Member Functions

static double Clamp (double v, double a, double b)
 
static double Cot (double x)
 Cotangent function.
 
static double Acosh (double x)
 
static double Asinh (double x)
 
static double Sinh (double x)
 
static double Cosh (double x)
 
static Vector3d Rot1 (Vector3d v, double angleRad)
 Return the rotation of the vector v by angleRad radians around the x axis.
 
static Vector3d RotY (Vector3d v, double angleRad)
 Return the rotation of the vector v by angleRad radians CW around the Y axis.
 
static Vector3d Rot3 (Vector3d v, double angleRad)
 Return the rotation of the vector v by angleRad radians around the z axis.
 
static double Distance (double[] a, double[] b)
 

Static Public Attributes

static double DEG2RAD = System.Math.PI / 180.0
 
static double RAD2DEG = 180.0/ System.Math.PI
 

Member Function Documentation

◆ Cot()

static double GEMath.Cot ( double  x)
static

Cotangent function.

Adapted from Vallado's astmath CPP functions.

◆ Rot1()

static Vector3d GEMath.Rot1 ( Vector3d  v,
double  angleRad 
)
static

Return the rotation of the vector v by angleRad radians around the x axis.

Parameters
v
angleRad
Returns

◆ Rot3()

static Vector3d GEMath.Rot3 ( Vector3d  v,
double  angleRad 
)
static

Return the rotation of the vector v by angleRad radians around the z axis.

Parameters
v
angleRad
Returns

◆ RotY()

static Vector3d GEMath.RotY ( Vector3d  v,
double  angleRad 
)
static

Return the rotation of the vector v by angleRad radians CW around the Y axis.

Parameters
v
angleRad
Returns

The documentation for this class was generated from the following file: