newspeoplefor developersdocumentationdownloads

Math Data Types
[Data Types]


Detailed Description

This section of the documentation covers the Nebula math libarary classes and functions.

Matrix

The matrices in Nebula are Row Major which is identical to D3D. This means that a matrix position of [1][2] means we are refering to the number in [Row 1][Column 2].

The following is the layout of the rows and columns in the Nebula matrix44 matrix.

        | M11  M12  M13  M14 |
        | M21  M22  M23  M24 |
        | M31  M32  M33  M34 |
        | M41  M42  M43  M44 |
    

Note:
You can get the element of the matrix by the macro Mrc. r indicates the row of the element and c indicates the column of element. For an example, you can get the first element of the matrix by m.M11('m' is the instance of the matrix44 or matrix33 class).
matrix44 provides its member functions to access each of the rows. The first row can be accessed by matrix44::x_component(). And there're matrix44::y_component() and matrix44::z_component() for the second and third row. The member function which access to the 4th row is matrix44::pos_component().


Classes

class  _matrix33
class  _matrix33_sse
class  _matrix44
class  _matrix44_sse
class  _vector2
class  _vector3
class  _vector3_sse
class  _vector4
class  _vector4_sse
class  bbox3
class  nEnvelopeCurve
class  nEulerAngles
class  line2
class  line3
class  pknorm3
class  plane
class  polar2
class  quaternion
class  rectangle
class  sphere
class  transform33
class  transform44
class  triangle
class  nVector3EnvelopeCurve

Copyright © 1999-2005 by the contributing authors. Ideas, requests, problems: Send feedback.