Nebula
Loading...
Searching...
No Matches
Im3d::Mat4 Struct Reference

#include <im3d.h>

Public Member Functions

 Mat4 ()
 
 Mat4 (float _diagonal)
 
 Mat4 (float m00, float m01, float m02, float m03, float m10, float m11, float m12, float m13, float m20, float m21, float m22, float m23, float m30=0.0f, float m31=0.0f, float m32=0.0f, float m33=1.0f)
 
 Mat4 (const Mat3 &_mat3)
 
 Mat4 (const Vec3 &_translation, const Mat3 &_rotation, const Vec3 &_scale)
 
 operator float * ()
 
 operator const float * () const
 
Vec4 getCol (int _i) const
 
Vec4 getRow (int _i) const
 
void setCol (int _i, const Vec4 &_v)
 
void setRow (int _i, const Vec4 &_v)
 
Vec3 getTranslation () const
 
void setTranslation (const Vec3 &_translation)
 
Mat3 getRotation () const
 
void setRotation (const Mat3 &_rotation)
 
Vec3 getScale () const
 
void setScale (const Vec3 &_scale)
 
float operator() (int _row, int _col) const
 
float & operator() (int _row, int _col)
 

Public Attributes

float m [4 *4]
 

Constructor & Destructor Documentation

◆ Mat4() [1/5]

Im3d::Mat4::Mat4 ( )
inline

◆ Mat4() [2/5]

Mat4::Mat4 ( float _diagonal)

◆ Mat4() [3/5]

Mat4::Mat4 ( float m00,
float m01,
float m02,
float m03,
float m10,
float m11,
float m12,
float m13,
float m20,
float m21,
float m22,
float m23,
float m30 = 0.0f,
float m31 = 0.0f,
float m32 = 0.0f,
float m33 = 1.0f )

◆ Mat4() [4/5]

Mat4::Mat4 ( const Mat3 & _mat3)

◆ Mat4() [5/5]

Mat4::Mat4 ( const Vec3 & _translation,
const Mat3 & _rotation,
const Vec3 & _scale )

Member Function Documentation

◆ getCol()

Vec4 Mat4::getCol ( int _i) const

◆ getRotation()

Mat3 Mat4::getRotation ( ) const

◆ getRow()

Vec4 Mat4::getRow ( int _i) const

◆ getScale()

Vec3 Mat4::getScale ( ) const

◆ getTranslation()

Vec3 Mat4::getTranslation ( ) const

◆ operator const float *()

Im3d::Mat4::operator const float * ( ) const
inline

◆ operator float *()

Im3d::Mat4::operator float * ( )
inline

◆ operator()() [1/2]

float & Im3d::Mat4::operator() ( int _row,
int _col )
inline

◆ operator()() [2/2]

float Im3d::Mat4::operator() ( int _row,
int _col ) const
inline

◆ setCol()

void Mat4::setCol ( int _i,
const Vec4 & _v )

◆ setRotation()

void Mat4::setRotation ( const Mat3 & _rotation)

◆ setRow()

void Mat4::setRow ( int _i,
const Vec4 & _v )

◆ setScale()

void Mat4::setScale ( const Vec3 & _scale)

◆ setTranslation()

void Mat4::setTranslation ( const Vec3 & _translation)

Member Data Documentation

◆ m

float Im3d::Mat4::m[4 *4]

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