Difference between revisions of "User:Abion47/Sandbox"

From Frictional Wiki
Jump to navigation Jump to search
Line 16: Line 16:
 
{{CodeDocSummaryItem|float|[[#cMath_PiMul2|cMath_PiMul2]]|Approximate value of pi multiplied by 2.}}
 
{{CodeDocSummaryItem|float|[[#cMath_PiMul2|cMath_PiMul2]]|Approximate value of pi multiplied by 2.}}
 
{{CodeDocSummaryItem|float|[[#cMath_Sqrt2|cMath_Sqrt2]]|Approximate value of the square root of 2}}
 
{{CodeDocSummaryItem|float|[[#cMath_Sqrt2|cMath_Sqrt2]]|Approximate value of the square root of 2}}
{{CodeDocSummaryItem|[[../cMatrixf|cMatrixf]]|[[#cMatrixf_Identity|cMatrixf_Identity]]|}}
+
{{CodeDocSummaryItem|[[../cMatrixf|cMatrixf]]|[[#cMatrixf_Identity|cMatrixf_Identity]]|The identity matrix.}}
{{CodeDocSummaryItem|[[../cMatrixf|cMatrixf]]|[[#cMatrixf_Zero|cMatrixf_Zero]]|}}
+
{{CodeDocSummaryItem|[[../cMatrixf|cMatrixf]]|[[#cMatrixf_Zero|cMatrixf_Zero]]|A zero-filled matrix.}}
{{CodeDocSummaryItem|[[../cQuaternion|cQuaternion]]|[[#cQuaternion_Identity|cQuaternion_Identity]]|}}
+
{{CodeDocSummaryItem|[[../cQuaternion|cQuaternion]]|[[#cQuaternion_Identity|cQuaternion_Identity]]|The quaternion identity.}}
{{CodeDocSummaryItem|[[../cVector2f|cVector2f]]|[[#cVector2f_Down|cVector2f_Down]]|}}
+
{{CodeDocSummaryItem|[[../cVector2f|cVector2f]]|[[#cVector2f_Down|cVector2f_Down]]|The down-facing 2D vector.}}
{{CodeDocSummaryItem|[[../cVector2f|cVector2f]]|[[#cVector2f_Left|cVector2f_Left]]|}}
+
{{CodeDocSummaryItem|[[../cVector2f|cVector2f]]|[[#cVector2f_Left|cVector2f_Left]]|The left-facing 2D vector.}}
{{CodeDocSummaryItem|[[../cVector2f|cVector2f]]|[[#cVector2f_MinusOne|cVector2f_MinusOne]]|}}
+
{{CodeDocSummaryItem|[[../cVector2f|cVector2f]]|[[#cVector2f_MinusOne|cVector2f_MinusOne]]|A negative-one-filled 2D vector.}}
{{CodeDocSummaryItem|[[../cVector2f|cVector2f]]|[[#cVector2f_One|cVector2f_One]]|}}
+
{{CodeDocSummaryItem|[[../cVector2f|cVector2f]]|[[#cVector2f_One|cVector2f_One]]|A one-filled 2D vector.}}
{{CodeDocSummaryItem|[[../cVector2f|cVector2f]]|[[#cVector2f_Right|cVector2f_Right]]|}}
+
{{CodeDocSummaryItem|[[../cVector2f|cVector2f]]|[[#cVector2f_Right|cVector2f_Right]]|The right-facing 2D vector.}}
{{CodeDocSummaryItem|[[../cVector2f|cVector2f]]|[[#cVector2f_Up|cVector2f_Up]]|}}
+
{{CodeDocSummaryItem|[[../cVector2f|cVector2f]]|[[#cVector2f_Up|cVector2f_Up]]|The up-facing 2D vector.}}
{{CodeDocSummaryItem|[[../cVector2f|cVector2f]]|[[#cVector2f_Zero|cVector2f_Zero]]|}}
+
{{CodeDocSummaryItem|[[../cVector2f|cVector2f]]|[[#cVector2f_Zero|cVector2f_Zero]]|A zero-filled 2D vector.}}
{{CodeDocSummaryItem|[[../cVector2l|cVector2l]]|[[#cVector2l_MinusOne|cVector2l_MinusOne]]|}}
+
{{CodeDocSummaryItem|[[../cVector2l|cVector2l]]|[[#cVector2l_MinusOne|cVector2l_MinusOne]]|A negative-one-filled 2D vector.}}
{{CodeDocSummaryItem|[[../cVector3f|cVector3f]]|[[#cVector3f_Back|cVector3f_Back]]|}}
+
{{CodeDocSummaryItem|[[../cVector3f|cVector3f]]|[[#cVector3f_Back|cVector3f_Back]]|The backward-facing 3D vector.}}
{{CodeDocSummaryItem|[[../cVector3f|cVector3f]]|[[#cVector3f_Down|cVector3f_Down]]|}}
+
{{CodeDocSummaryItem|[[../cVector3f|cVector3f]]|[[#cVector3f_Down|cVector3f_Down]]|The down-facing 3D vector.}}
{{CodeDocSummaryItem|[[../cVector3f|cVector3f]]|[[#cVector3f_Forward|cVector3f_Forward]]|}}
+
{{CodeDocSummaryItem|[[../cVector3f|cVector3f]]|[[#cVector3f_Forward|cVector3f_Forward]]|The forward-facing 3D vector.}}
{{CodeDocSummaryItem|[[../cVector3f|cVector3f]]|[[#cVector3f_Left|cVector3f_Left]]|}}
+
{{CodeDocSummaryItem|[[../cVector3f|cVector3f]]|[[#cVector3f_Left|cVector3f_Left]]|The left-facing 3D vector.}}
{{CodeDocSummaryItem|[[../cVector3f|cVector3f]]|[[#cVector3f_MinusOne|cVector3f_MinusOne]]|}}
+
{{CodeDocSummaryItem|[[../cVector3f|cVector3f]]|[[#cVector3f_MinusOne|cVector3f_MinusOne]]|A negative-one-filled 3D vector.}}
{{CodeDocSummaryItem|[[../cVector3f|cVector3f]]|[[#cVector3f_One|cVector3f_One]]|}}
+
{{CodeDocSummaryItem|[[../cVector3f|cVector3f]]|[[#cVector3f_One|cVector3f_One]]|A one-filled 3D vector.}}
{{CodeDocSummaryItem|[[../cVector3f|cVector3f]]|[[#cVector3f_Right|cVector3f_Right]]|}}
+
{{CodeDocSummaryItem|[[../cVector3f|cVector3f]]|[[#cVector3f_Right|cVector3f_Right]]|The right-facing 3D vector.}}
{{CodeDocSummaryItem|[[../cVector3f|cVector3f]]|[[#cVector3f_Up|cVector3f_Up]]|}}
+
{{CodeDocSummaryItem|[[../cVector3f|cVector3f]]|[[#cVector3f_Up|cVector3f_Up]]|The up-facing 3D vector.}}
{{CodeDocSummaryItem|[[../cVector3f|cVector3f]]|[[#cVector3f_Zero|cVector3f_Zero]]|}}
+
{{CodeDocSummaryItem|[[../cVector3f|cVector3f]]|[[#cVector3f_Zero|cVector3f_Zero]]|A zero-filled 3D vector.}}
{{CodeDocSummaryItem|[[../cVector4f|cVector4f]]|[[#cVector4f_MinusOne|cVector4f_MinusOne]]|}}
+
{{CodeDocSummaryItem|[[../cVector4f|cVector4f]]|[[#cVector4f_MinusOne|cVector4f_MinusOne]]|A negative-one-filled 4D vector.}}
{{CodeDocSummaryItem|[[../cVector4f|cVector4f]]|[[#cVector4f_One|cVector4f_One]]|}}
+
{{CodeDocSummaryItem|[[../cVector4f|cVector4f]]|[[#cVector4f_One|cVector4f_One]]|A one-filled 4D vector.}}
{{CodeDocSummaryItem|[[../cVector4f|cVector4f]]|[[#cVector4f_Zero|cVector4f_Zero]]|}}
+
{{CodeDocSummaryItem|[[../cVector4f|cVector4f]]|[[#cVector4f_Zero|cVector4f_Zero]]|A zero-filled 4D vector.}}
{{CodeDocSummaryItem|[[../tID|tID]]|[[#tID_Invalid|tID_Invalid]]|}}
+
{{CodeDocSummaryItem|[[../tID|tID]]|[[#tID_Invalid|tID_Invalid]]|The static value of an invalid tID.}}
 
{{CodeDocSummaryBottom}}
 
{{CodeDocSummaryBottom}}
  
Line 97: Line 97:
  
 
{{CodeDocDetailTop|cMatrixf_Identity}}
 
{{CodeDocDetailTop|cMatrixf_Identity}}
<syntaxhighlight lang="c++">const cMatrixf cMatrixf_Identity</syntaxhighlight>
+
<syntaxhighlight lang="c++">const cMatrixf cMatrixf_Identity = cMatrixf(1.0, 0.0, 0.0, 0.0,
{{CodeDocDetailBody|}}
+
                                            0.0, 1.0, 0.0, 0.0,
 +
                                            0.0, 0.0, 1.0, 0.0,
 +
                                            0.0, 0.0, 0.0, 1.0)</syntaxhighlight>
 +
{{CodeDocDetailBody|The identity matrix.}}
 
{{CodeDocDetailBottom}}
 
{{CodeDocDetailBottom}}
  
 
{{CodeDocDetailTop|cMatrixf_Zero}}
 
{{CodeDocDetailTop|cMatrixf_Zero}}
<syntaxhighlight lang="c++">const cMatrixf cMatrixf_Zero</syntaxhighlight>
+
<syntaxhighlight lang="c++">const cMatrixf cMatrixf_Zero = cMatrixf(0.0, 0.0, 0.0, 0.0,
{{CodeDocDetailBody|}}
+
                                        0.0, 0.0, 0.0, 0.0,
 +
                                        0.0, 0.0, 0.0, 0.0,
 +
                                        0.0, 0.0, 0.0, 0.0)</syntaxhighlight>
 +
{{CodeDocDetailBody|A zero-filled matrix.}}
 
{{CodeDocDetailBottom}}
 
{{CodeDocDetailBottom}}
  
 
{{CodeDocDetailTop|cQuaternion_Identity}}
 
{{CodeDocDetailTop|cQuaternion_Identity}}
<syntaxhighlight lang="c++">const cQuaternion cQuaternion_Identity</syntaxhighlight>
+
<syntaxhighlight lang="c++">const cQuaternion cQuaternion_Identity = cQuaternion(0.0, 0.0, 0.0, 1.0)</syntaxhighlight>
{{CodeDocDetailBody|}}
+
{{CodeDocDetailBody|The quaternion identity.}}
 
{{CodeDocDetailBottom}}
 
{{CodeDocDetailBottom}}
  
 
{{CodeDocDetailTop|cVector2f_Down}}
 
{{CodeDocDetailTop|cVector2f_Down}}
<syntaxhighlight lang="c++">const cVector2f cVector2f_Down</syntaxhighlight>
+
<syntaxhighlight lang="c++">const cVector2f cVector2f_Down = cVector2f(0.0, -1.0)</syntaxhighlight>
{{CodeDocDetailBody|}}
+
{{CodeDocDetailBody|The down-facing 2D vector.}}
 
{{CodeDocDetailBottom}}
 
{{CodeDocDetailBottom}}
  
 
{{CodeDocDetailTop|cVector2f_Left}}
 
{{CodeDocDetailTop|cVector2f_Left}}
<syntaxhighlight lang="c++">const cVector2f cVector2f_Left</syntaxhighlight>
+
<syntaxhighlight lang="c++">const cVector2f cVector2f_Left = cVector2f(-1.0, 0.0)</syntaxhighlight>
{{CodeDocDetailBody|}}
+
{{CodeDocDetailBody|The left-facing 2D vector.}}
 
{{CodeDocDetailBottom}}
 
{{CodeDocDetailBottom}}
  
 
{{CodeDocDetailTop|cVector2f_MinusOne}}
 
{{CodeDocDetailTop|cVector2f_MinusOne}}
<syntaxhighlight lang="c++">const cVector2f cVector2f_MinusOne</syntaxhighlight>
+
<syntaxhighlight lang="c++">const cVector2f cVector2f_MinusOne = cVector2f(-1.0, -1.0)</syntaxhighlight>
{{CodeDocDetailBody|}}
+
{{CodeDocDetailBody|A negative-one-filled 2D vector.}}
 
{{CodeDocDetailBottom}}
 
{{CodeDocDetailBottom}}
  
 
{{CodeDocDetailTop|cVector2f_One}}
 
{{CodeDocDetailTop|cVector2f_One}}
<syntaxhighlight lang="c++">const cVector2f cVector2f_One</syntaxhighlight>
+
<syntaxhighlight lang="c++">const cVector2f cVector2f_One = cVector2f(1.0, 1.0)</syntaxhighlight>
{{CodeDocDetailBody|}}
+
{{CodeDocDetailBody|A one-filled 2D vector.}}
 
{{CodeDocDetailBottom}}
 
{{CodeDocDetailBottom}}
  
 
{{CodeDocDetailTop|cVector2f_Right}}
 
{{CodeDocDetailTop|cVector2f_Right}}
<syntaxhighlight lang="c++">const cVector2f cVector2f_Right</syntaxhighlight>
+
<syntaxhighlight lang="c++">const cVector2f cVector2f_Right = cVector2f(1.0, 0.0)</syntaxhighlight>
{{CodeDocDetailBody|}}
+
{{CodeDocDetailBody|The right-facing 2D vector.}}
 
{{CodeDocDetailBottom}}
 
{{CodeDocDetailBottom}}
  
 
{{CodeDocDetailTop|cVector2f_Up}}
 
{{CodeDocDetailTop|cVector2f_Up}}
<syntaxhighlight lang="c++">const cVector2f cVector2f_Up</syntaxhighlight>
+
<syntaxhighlight lang="c++">const cVector2f cVector2f_Up = cVector2f(0.0, 1.0)</syntaxhighlight>
{{CodeDocDetailBody|}}
+
{{CodeDocDetailBody|The up-facing 2D vector.}}
 
{{CodeDocDetailBottom}}
 
{{CodeDocDetailBottom}}
  
 
{{CodeDocDetailTop|cVector2f_Zero}}
 
{{CodeDocDetailTop|cVector2f_Zero}}
<syntaxhighlight lang="c++">const cVector2f cVector2f_Zero</syntaxhighlight>
+
<syntaxhighlight lang="c++">const cVector2f cVector2f_Zero = cVector2f(0.0, 0.0)</syntaxhighlight>
{{CodeDocDetailBody|}}
+
{{CodeDocDetailBody|A zero-filled 2D vector.}}
 
{{CodeDocDetailBottom}}
 
{{CodeDocDetailBottom}}
  
 
{{CodeDocDetailTop|cVector2l_MinusOne}}
 
{{CodeDocDetailTop|cVector2l_MinusOne}}
<syntaxhighlight lang="c++">const cVector2l cVector2l_MinusOne</syntaxhighlight>
+
<syntaxhighlight lang="c++">const cVector2l cVector2l_MinusOne = cVector2l(-1, -1)</syntaxhighlight>
{{CodeDocDetailBody|}}
+
{{CodeDocDetailBody|A negative-one-filled 2D vector.}}
 
{{CodeDocDetailBottom}}
 
{{CodeDocDetailBottom}}
  
 
{{CodeDocDetailTop|cVector3f_Back}}
 
{{CodeDocDetailTop|cVector3f_Back}}
<syntaxhighlight lang="c++">const cVector3f cVector3f_Back</syntaxhighlight>
+
<syntaxhighlight lang="c++">const cVector3f cVector3f_Back = cVector3f(0.0, 0.0, -1.0)</syntaxhighlight>
{{CodeDocDetailBody|}}
+
{{CodeDocDetailBody|The backward-facing 3D vector.}}
 
{{CodeDocDetailBottom}}
 
{{CodeDocDetailBottom}}
  
 
{{CodeDocDetailTop|cVector3f_Down}}
 
{{CodeDocDetailTop|cVector3f_Down}}
<syntaxhighlight lang="c++">const cVector3f cVector3f_Down</syntaxhighlight>
+
<syntaxhighlight lang="c++">const cVector3f cVector3f_Down = cVector3f(0.0, -1.0, 0.0)</syntaxhighlight>
{{CodeDocDetailBody|}}
+
{{CodeDocDetailBody|The down-facing 3D vector.}}
 
{{CodeDocDetailBottom}}
 
{{CodeDocDetailBottom}}
  
 
{{CodeDocDetailTop|cVector3f_Forward}}
 
{{CodeDocDetailTop|cVector3f_Forward}}
<syntaxhighlight lang="c++">const cVector3f cVector3f_Forward</syntaxhighlight>
+
<syntaxhighlight lang="c++">const cVector3f cVector3f_Forward = cVector3f(0.0, 0.0, 1.0)</syntaxhighlight>
{{CodeDocDetailBody|}}
+
{{CodeDocDetailBody|The forward-facing 3D vector.}}
 
{{CodeDocDetailBottom}}
 
{{CodeDocDetailBottom}}
  
 
{{CodeDocDetailTop|cVector3f_Left}}
 
{{CodeDocDetailTop|cVector3f_Left}}
<syntaxhighlight lang="c++">const cVector3f cVector3f_Left</syntaxhighlight>
+
<syntaxhighlight lang="c++">const cVector3f cVector3f_Left = cVector3f(-1.0, 0.0, 0.0)</syntaxhighlight>
{{CodeDocDetailBody|}}
+
{{CodeDocDetailBody|The left-facing 3D vector.}}
 
{{CodeDocDetailBottom}}
 
{{CodeDocDetailBottom}}
  
 
{{CodeDocDetailTop|cVector3f_MinusOne}}
 
{{CodeDocDetailTop|cVector3f_MinusOne}}
<syntaxhighlight lang="c++">const cVector3f cVector3f_MinusOne</syntaxhighlight>
+
<syntaxhighlight lang="c++">const cVector3f cVector3f_MinusOne = cVector3f(-1.0, -1.0, -1.0)</syntaxhighlight>
{{CodeDocDetailBody|}}
+
{{CodeDocDetailBody|A negative-one-filled 3D vector.}}
 
{{CodeDocDetailBottom}}
 
{{CodeDocDetailBottom}}
  
 
{{CodeDocDetailTop|cVector3f_One}}
 
{{CodeDocDetailTop|cVector3f_One}}
<syntaxhighlight lang="c++">const cVector3f cVector3f_One</syntaxhighlight>
+
<syntaxhighlight lang="c++">const cVector3f cVector3f_One = cVector3f(1.0, 1.0, 1.0)</syntaxhighlight>
{{CodeDocDetailBody|}}
+
{{CodeDocDetailBody|A one-filled 3D vector.}}
 
{{CodeDocDetailBottom}}
 
{{CodeDocDetailBottom}}
  
 
{{CodeDocDetailTop|cVector3f_Right}}
 
{{CodeDocDetailTop|cVector3f_Right}}
<syntaxhighlight lang="c++">const cVector3f cVector3f_Right</syntaxhighlight>
+
<syntaxhighlight lang="c++">const cVector3f cVector3f_Right = cVector3f(1.0, 0.0, 0.0)</syntaxhighlight>
{{CodeDocDetailBody|}}
+
{{CodeDocDetailBody|The right-facing 3D vector.}}
 
{{CodeDocDetailBottom}}
 
{{CodeDocDetailBottom}}
  
 
{{CodeDocDetailTop|cVector3f_Up}}
 
{{CodeDocDetailTop|cVector3f_Up}}
<syntaxhighlight lang="c++">const cVector3f cVector3f_Up</syntaxhighlight>
+
<syntaxhighlight lang="c++">const cVector3f cVector3f_Up = cVector3f(0.0, 1.0, 0.0)</syntaxhighlight>
{{CodeDocDetailBody|}}
+
{{CodeDocDetailBody|The up-facing 3D vector.}}
 
{{CodeDocDetailBottom}}
 
{{CodeDocDetailBottom}}
  
 
{{CodeDocDetailTop|cVector3f_Zero}}
 
{{CodeDocDetailTop|cVector3f_Zero}}
<syntaxhighlight lang="c++">const cVector3f cVector3f_Zero</syntaxhighlight>
+
<syntaxhighlight lang="c++">const cVector3f cVector3f_Zero = cVector3f(0.0, 0.0, 0.0)</syntaxhighlight>
{{CodeDocDetailBody|}}
+
{{CodeDocDetailBody|A zero-filled 3D vector.}}
 
{{CodeDocDetailBottom}}
 
{{CodeDocDetailBottom}}
  
 
{{CodeDocDetailTop|cVector4f_MinusOne}}
 
{{CodeDocDetailTop|cVector4f_MinusOne}}
<syntaxhighlight lang="c++">const cVector4f cVector4f_MinusOne</syntaxhighlight>
+
<syntaxhighlight lang="c++">const cVector4f cVector4f_MinusOne = cVector4f(-1.0, -1.0, -1.0, -1.0)</syntaxhighlight>
{{CodeDocDetailBody|}}
+
{{CodeDocDetailBody|A negative-one-filled 4D vector.}}
 
{{CodeDocDetailBottom}}
 
{{CodeDocDetailBottom}}
  
 
{{CodeDocDetailTop|cVector4f_One}}
 
{{CodeDocDetailTop|cVector4f_One}}
<syntaxhighlight lang="c++">const cVector4f cVector4f_One</syntaxhighlight>
+
<syntaxhighlight lang="c++">const cVector4f cVector4f_One = cVector4f(1.0, 1.0, 1.0, 1.0)</syntaxhighlight>
{{CodeDocDetailBody|}}
+
{{CodeDocDetailBody|A one-filled 4D vector.}}
 
{{CodeDocDetailBottom}}
 
{{CodeDocDetailBottom}}
  
 
{{CodeDocDetailTop|cVector4f_Zero}}
 
{{CodeDocDetailTop|cVector4f_Zero}}
<syntaxhighlight lang="c++">const cVector4f cVector4f_Zero</syntaxhighlight>
+
<syntaxhighlight lang="c++">const cVector4f cVector4f_Zero = cVector4f(0.0, 0.0, 0.0, 0.0)</syntaxhighlight>
{{CodeDocDetailBody|}}
+
{{CodeDocDetailBody|A zero-filled 4D vector.}}
 
{{CodeDocDetailBottom}}
 
{{CodeDocDetailBottom}}
  
 
{{CodeDocDetailTop|tID_Invalid}}
 
{{CodeDocDetailTop|tID_Invalid}}
 
<syntaxhighlight lang="c++">const tID tID_Invalid</syntaxhighlight>
 
<syntaxhighlight lang="c++">const tID tID_Invalid</syntaxhighlight>
{{CodeDocDetailBody|}}
+
{{CodeDocDetailBody|The static value of an invalid tID.}}
 
{{CodeDocDetailBottom}}
 
{{CodeDocDetailBottom}}
  

Revision as of 23:03, 11 August 2020

Have some helpful descriptions to add to this class? Edit this page and add your insight to the Wiki!

Constant Summary

Return Type Function and Description
cColor cColor_Blue
cColor cColor_Green
cColor cColor_Red
cColor cColor_White
float cMath_Epsilon
The value of correction for small floating point numbers.
float cMath_Pi
Approximate value of pi.
float cMath_PiDiv2
Approximate value of pi divided by 2.
float cMath_PiDiv4
Approximate value of pi divided by 4.
float cMath_PiMul2
Approximate value of pi multiplied by 2.
float cMath_Sqrt2
Approximate value of the square root of 2
cMatrixf cMatrixf_Identity
The identity matrix.
cMatrixf cMatrixf_Zero
A zero-filled matrix.
cQuaternion cQuaternion_Identity
The quaternion identity.
cVector2f cVector2f_Down
The down-facing 2D vector.
cVector2f cVector2f_Left
The left-facing 2D vector.
cVector2f cVector2f_MinusOne
A negative-one-filled 2D vector.
cVector2f cVector2f_One
A one-filled 2D vector.
cVector2f cVector2f_Right
The right-facing 2D vector.
cVector2f cVector2f_Up
The up-facing 2D vector.
cVector2f cVector2f_Zero
A zero-filled 2D vector.
cVector2l cVector2l_MinusOne
A negative-one-filled 2D vector.
cVector3f cVector3f_Back
The backward-facing 3D vector.
cVector3f cVector3f_Down
The down-facing 3D vector.
cVector3f cVector3f_Forward
The forward-facing 3D vector.
cVector3f cVector3f_Left
The left-facing 3D vector.
cVector3f cVector3f_MinusOne
A negative-one-filled 3D vector.
cVector3f cVector3f_One
A one-filled 3D vector.
cVector3f cVector3f_Right
The right-facing 3D vector.
cVector3f cVector3f_Up
The up-facing 3D vector.
cVector3f cVector3f_Zero
A zero-filled 3D vector.
cVector4f cVector4f_MinusOne
A negative-one-filled 4D vector.
cVector4f cVector4f_One
A one-filled 4D vector.
cVector4f cVector4f_Zero
A zero-filled 4D vector.
tID tID_Invalid
The static value of an invalid tID.

Constant Detail

cColor_Blue

const cColor cColor_Blue = cColor(0.0, 0.0, 1.0, 1.0)

cColor_Green

const cColor cColor_Green = cColor(0.0, 1.0, 0.0, 1.0)

cColor_Red

const cColor cColor_Red = cColor(1.0, 0.0, 0.0, 1.0)

cColor_White

const cColor cColor_White = cColor(1.0, 1.0, 1.0, 1.0)

cMath_Epsilon

const float cMath_Epsilon = 0.0001

The value of correction for small floating point numbers.

When two floats are subtracted, floating point errors can make the result not exact. (i.e. 3.0 - 2.0 == 1.0 may not strictly be true.) As such, if the difference between two floats is less than the value of cMath_Epsilon, those two floats can be considered equal.

cMath_Pi

const float cMath_Pi = 3.141593

Approximate value of pi.

cMath_PiDiv2

const float cMath_PiDiv2

Approximate value of pi divided by 2.

cMath_PiDiv4

const float cMath_PiDiv4

Approximate value of pi divided by 4.

cMath_PiMul2

const float cMath_PiMul2

Approximate value of pi multiplied by 2.

cMath_Sqrt2

const float cMath_Sqrt2

Approximate value of the square root of 2.

cMatrixf_Identity

const cMatrixf cMatrixf_Identity = cMatrixf(1.0, 0.0, 0.0, 0.0,
                                            0.0, 1.0, 0.0, 0.0,
                                            0.0, 0.0, 1.0, 0.0,
                                            0.0, 0.0, 0.0, 1.0)

The identity matrix.

cMatrixf_Zero

const cMatrixf cMatrixf_Zero = cMatrixf(0.0, 0.0, 0.0, 0.0,
                                        0.0, 0.0, 0.0, 0.0,
                                        0.0, 0.0, 0.0, 0.0,
                                        0.0, 0.0, 0.0, 0.0)

A zero-filled matrix.

cQuaternion_Identity

const cQuaternion cQuaternion_Identity = cQuaternion(0.0, 0.0, 0.0, 1.0)

The quaternion identity.

cVector2f_Down

const cVector2f cVector2f_Down = cVector2f(0.0, -1.0)

The down-facing 2D vector.

cVector2f_Left

const cVector2f cVector2f_Left = cVector2f(-1.0, 0.0)

The left-facing 2D vector.

cVector2f_MinusOne

const cVector2f cVector2f_MinusOne = cVector2f(-1.0, -1.0)

A negative-one-filled 2D vector.

cVector2f_One

const cVector2f cVector2f_One = cVector2f(1.0, 1.0)

A one-filled 2D vector.

cVector2f_Right

const cVector2f cVector2f_Right = cVector2f(1.0, 0.0)

The right-facing 2D vector.

cVector2f_Up

const cVector2f cVector2f_Up = cVector2f(0.0, 1.0)

The up-facing 2D vector.

cVector2f_Zero

const cVector2f cVector2f_Zero = cVector2f(0.0, 0.0)

A zero-filled 2D vector.

cVector2l_MinusOne

const cVector2l cVector2l_MinusOne = cVector2l(-1, -1)

A negative-one-filled 2D vector.

cVector3f_Back

const cVector3f cVector3f_Back = cVector3f(0.0, 0.0, -1.0)

The backward-facing 3D vector.

cVector3f_Down

const cVector3f cVector3f_Down = cVector3f(0.0, -1.0, 0.0)

The down-facing 3D vector.

cVector3f_Forward

const cVector3f cVector3f_Forward = cVector3f(0.0, 0.0, 1.0)

The forward-facing 3D vector.

cVector3f_Left

const cVector3f cVector3f_Left = cVector3f(-1.0, 0.0, 0.0)

The left-facing 3D vector.

cVector3f_MinusOne

const cVector3f cVector3f_MinusOne = cVector3f(-1.0, -1.0, -1.0)

A negative-one-filled 3D vector.

cVector3f_One

const cVector3f cVector3f_One = cVector3f(1.0, 1.0, 1.0)

A one-filled 3D vector.

cVector3f_Right

const cVector3f cVector3f_Right = cVector3f(1.0, 0.0, 0.0)

The right-facing 3D vector.

cVector3f_Up

const cVector3f cVector3f_Up = cVector3f(0.0, 1.0, 0.0)

The up-facing 3D vector.

cVector3f_Zero

const cVector3f cVector3f_Zero = cVector3f(0.0, 0.0, 0.0)

A zero-filled 3D vector.

cVector4f_MinusOne

const cVector4f cVector4f_MinusOne = cVector4f(-1.0, -1.0, -1.0, -1.0)

A negative-one-filled 4D vector.

cVector4f_One

const cVector4f cVector4f_One = cVector4f(1.0, 1.0, 1.0, 1.0)

A one-filled 4D vector.

cVector4f_Zero

const cVector4f cVector4f_Zero = cVector4f(0.0, 0.0, 0.0, 0.0)

A zero-filled 4D vector.

tID_Invalid

const tID tID_Invalid

The static value of an invalid tID.