Support Forum       G3D Web Page     
Public Member Functions | Static Public Member Functions | List of all members
G3D::Matrix3x4 Class Reference

A 3x4 matrix. More...

Public Member Functions

 Matrix3x4 (const Any &any)
 Must be in one of the following forms: More...
 
 Matrix3x4 (float r1c1, float r1c2, float r1c3, float r1c4, float r2c1, float r2c2, float r2c3, float r2c4, float r3c1, float r3c2, float r3c3, float r3c4)
 
 Matrix3x4 (DoNotInitialize dni)
 
 Matrix3x4 (const float *init)
 
init should be row major. More...
 
 Matrix3x4 (const class Matrix3 &m3x3)
 
 Matrix3x4 (const class Matrix4 &m4x4)
 
 Matrix3x4 (const class CoordinateFrame &c)
 
 Matrix3x4 (const double *init)
 
 Matrix3x4 ()
 Matrix3x4::zero() More...
 
bool allFinite () const
 
bool anyNaN () const
 
bool fuzzyEq (const Matrix3x4 &b) const
 
 operator const float * () const
 
 operator float * ()
 Returns a row-major pointer. More...
 
bool operator!= (const Matrix3x4 &other) const
 
Matrix3x4 operator* (const class PhysicsFrame &other) const
 Acts as if both matrices had final rows of [0, 0, 0, 1]. More...
 
Matrix3x4 operator* (const class CoordinateFrame &other) const
 Acts as if both matrices had final rows of [0, 0, 0, 1]. More...
 
Matrix3x4 operator* (const Matrix3x4 &other) const
 Acts as if both matrices had final rows of [0, 0, 0, 1]. More...
 
Matrix3x4 operator* (const Matrix4 &other) const
 
Vector3 operator* (const Vector4 &other) const
 
Matrix3x4 operator* (const float s) const
 
Matrix3x4 operator+ (const Matrix3x4 &other) const
 
Matrix3x4 operator- (const Matrix3x4 &other) const
 
Matrix3x4 operator/ (const float s) const
 
Matrix3x4operator= (const CoordinateFrame &c)
 
bool operator== (const Matrix3x4 &other) const
 
float * operator[] (int r)
 
const float * operator[] (int r) const
 
Any toAny () const
 
String toString () const
 

Static Public Member Functions

static const Matrix3x4fromIdentity ()
 
static const Matrix3x4zero ()
 

Detailed Description

A 3x4 matrix.

Do not subclass. Data is initialized to 0 when default constructed.

See also
G3D::CoordinateFrame, G3D::Matrix3, G3D::Matrix4, G3D::Quat

Constructor & Destructor Documentation

◆ Matrix3x4() [1/9]

G3D::Matrix3x4::Matrix3x4 ( const Any any)
explicit

Must be in one of the following forms:

◆ Matrix3x4() [2/9]

G3D::Matrix3x4::Matrix3x4 ( float  r1c1,
float  r1c2,
float  r1c3,
float  r1c4,
float  r2c1,
float  r2c2,
float  r2c3,
float  r2c4,
float  r3c1,
float  r3c2,
float  r3c3,
float  r3c4 
)

◆ Matrix3x4() [3/9]

G3D::Matrix3x4::Matrix3x4 ( DoNotInitialize  dni)
inline

◆ Matrix3x4() [4/9]

G3D::Matrix3x4::Matrix3x4 ( const float *  init)


init should be row major.

◆ Matrix3x4() [5/9]

G3D::Matrix3x4::Matrix3x4 ( const class Matrix3 m3x3)
explicit

◆ Matrix3x4() [6/9]

G3D::Matrix3x4::Matrix3x4 ( const class Matrix4 m4x4)
explicit

◆ Matrix3x4() [7/9]

G3D::Matrix3x4::Matrix3x4 ( const class CoordinateFrame c)
explicit

◆ Matrix3x4() [8/9]

G3D::Matrix3x4::Matrix3x4 ( const double *  init)

◆ Matrix3x4() [9/9]

G3D::Matrix3x4::Matrix3x4 ( )

Member Function Documentation

◆ allFinite()

bool G3D::Matrix3x4::allFinite ( ) const

◆ anyNaN()

bool G3D::Matrix3x4::anyNaN ( ) const

◆ fromIdentity()

static const Matrix3x4& G3D::Matrix3x4::fromIdentity ( )
static

◆ fuzzyEq()

bool G3D::Matrix3x4::fuzzyEq ( const Matrix3x4 b) const

◆ operator const float *()

G3D::Matrix3x4::operator const float * ( ) const
inline

◆ operator float *()

G3D::Matrix3x4::operator float * ( )
inline

Returns a row-major pointer.

◆ operator!=()

bool G3D::Matrix3x4::operator!= ( const Matrix3x4 other) const

◆ operator*() [1/6]

Matrix3x4 G3D::Matrix3x4::operator* ( const class PhysicsFrame other) const

Acts as if both matrices had final rows of [0, 0, 0, 1].

◆ operator*() [2/6]

Matrix3x4 G3D::Matrix3x4::operator* ( const class CoordinateFrame other) const

Acts as if both matrices had final rows of [0, 0, 0, 1].

◆ operator*() [3/6]

Matrix3x4 G3D::Matrix3x4::operator* ( const Matrix3x4 other) const

Acts as if both matrices had final rows of [0, 0, 0, 1].

◆ operator*() [4/6]

Matrix3x4 G3D::Matrix3x4::operator* ( const Matrix4 other) const

◆ operator*() [5/6]

Vector3 G3D::Matrix3x4::operator* ( const Vector4 other) const

◆ operator*() [6/6]

Matrix3x4 G3D::Matrix3x4::operator* ( const float  s) const

◆ operator+()

Matrix3x4 G3D::Matrix3x4::operator+ ( const Matrix3x4 other) const

◆ operator-()

Matrix3x4 G3D::Matrix3x4::operator- ( const Matrix3x4 other) const

◆ operator/()

Matrix3x4 G3D::Matrix3x4::operator/ ( const float  s) const

◆ operator=()

Matrix3x4& G3D::Matrix3x4::operator= ( const CoordinateFrame c)

◆ operator==()

bool G3D::Matrix3x4::operator== ( const Matrix3x4 other) const

◆ operator[]() [1/2]

float* G3D::Matrix3x4::operator[] ( int  r)
inline

◆ operator[]() [2/2]

const float* G3D::Matrix3x4::operator[] ( int  r) const
inline

◆ toAny()

Any G3D::Matrix3x4::toAny ( ) const

◆ toString()

String G3D::Matrix3x4::toString ( ) const

◆ zero()

static const Matrix3x4& G3D::Matrix3x4::zero ( )
static

documentation generated on Wed Nov 24 2021 08:01:58 using doxygen 1.8.15