EvEmu  0.8.4
11 September 2021
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Ga::Math Class Reference

#include "GaMath.h"

Static Public Member Functions

static GaFloat squareRoot (GaFloat f)
 
static GaFloat arcCosine (const GaFloat &r)
 
static GaFloat arcTangent (const GaFloat &r)
 
static GaFloat arcTangent (const GaFloat &x, const GaFloat &y)
 
static GaFloat cosine (const GaFloat &r)
 
static GaFloat sine (const GaFloat &r)
 
static GaFloat absolute (GaFloat f)
 

Static Public Attributes

static const GaExport GaFloat GaPi = 3.1415926535897932384626433832795
 
static const GaExport GaFloat GaDegreesInRadian = 180.0 / GaPi
 
static const GaExport GaFloat GaRadianInDegree = GaPi / 180.0
 
static const GaExport GaFloat GaEpsilon = FLT_EPSILON
 
static const GaExport GaFloat GaMinFloat = FLT_MIN
 
static const GaExport GaFloat GaMaxFloat = FLT_MAX
 

Detailed Description

Definition at line 28 of file GaMath.h.

Member Function Documentation

static GaFloat Ga::Math::absolute ( GaFloat  f)
inlinestatic

Definition at line 45 of file GaMath.h.

45 {return fabs(f);}
static GaFloat Ga::Math::arcCosine ( const GaFloat r)
inlinestatic

Definition at line 40 of file GaMath.h.

40 {return acos(r);}
static GaFloat Ga::Math::arcTangent ( const GaFloat r)
inlinestatic

Definition at line 41 of file GaMath.h.

Referenced by Ga::GaVec3::rotationTo().

41 {return atan(r);}

Here is the caller graph for this function:

static GaFloat Ga::Math::arcTangent ( const GaFloat x,
const GaFloat y 
)
inlinestatic

Definition at line 42 of file GaMath.h.

42 {return atan2(x,y);}
itemID[count] Create count or of the specified() x() y(z)-Jump to the specified position in space.Stopped." ) COMMAND( translocate
static GaFloat Ga::Math::cosine ( const GaFloat r)
inlinestatic

Definition at line 43 of file GaMath.h.

Referenced by Ga::GaQuat::GaQuat().

43 {return cos(r);}

Here is the caller graph for this function:

static GaFloat Ga::Math::sine ( const GaFloat r)
inlinestatic

Definition at line 44 of file GaMath.h.

Referenced by Ga::GaQuat::GaQuat().

44 {return sin(r);}

Here is the caller graph for this function:

static GaFloat Ga::Math::squareRoot ( GaFloat  f)
inlinestatic

Definition at line 39 of file GaMath.h.

Referenced by Ga::GaVec3::distance(), Ga::GaQuat::GaQuat(), and Ga::GaVec3::length().

39 {return sqrt(f);}

Here is the caller graph for this function:

Member Data Documentation

const GaFloat Math::GaDegreesInRadian = 180.0 / GaPi
static

Definition at line 32 of file GaMath.h.

Referenced by Ga::GaRadian::GaRadian(), and Ga::GaVec3::rotationTo().

const GaFloat Math::GaEpsilon = FLT_EPSILON
static

Definition at line 34 of file GaMath.h.

Referenced by Ga::GaVec3::normalize().

const GaFloat Math::GaMaxFloat = FLT_MAX
static

Definition at line 36 of file GaMath.h.

const GaFloat Math::GaMinFloat = FLT_MIN
static

Definition at line 35 of file GaMath.h.

const GaFloat Math::GaPi = 3.1415926535897932384626433832795
static

Definition at line 31 of file GaMath.h.

Referenced by Ga::GaVec3::angle().

const GaFloat Math::GaRadianInDegree = GaPi / 180.0
static

Definition at line 33 of file GaMath.h.

Referenced by Ga::GaDegree::GaDegree().


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