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

#include <im3d.h>

Public Member Functions

 Mat3 ()
 
 Mat3 (float _diagonal)
 
 Mat3 (float m00, float m01, float m02, float m10, float m11, float m12, float m20, float m21, float m22)
 
 Mat3 (const Vec3 &_colX, const Vec3 &_colY, const Vec3 &_colZ)
 
 Mat3 (const Mat4 &_mat4)
 
 operator float * ()
 
 operator const float * () const
 
Vec3 getCol (int _i) const
 
Vec3 getRow (int _i) const
 
void setCol (int _i, const Vec3 &_v)
 
void setRow (int _i, const Vec3 &_v)
 
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 [3 *3]
 

Constructor & Destructor Documentation

◆ Mat3() [1/5]

Im3d::Mat3::Mat3 ( )
inline

◆ Mat3() [2/5]

Mat3::Mat3 ( float _diagonal)

◆ Mat3() [3/5]

Mat3::Mat3 ( float m00,
float m01,
float m02,
float m10,
float m11,
float m12,
float m20,
float m21,
float m22 )

◆ Mat3() [4/5]

Mat3::Mat3 ( const Vec3 & _colX,
const Vec3 & _colY,
const Vec3 & _colZ )

◆ Mat3() [5/5]

Mat3::Mat3 ( const Mat4 & _mat4)

Member Function Documentation

◆ getCol()

Vec3 Mat3::getCol ( int _i) const

◆ getRow()

Vec3 Mat3::getRow ( int _i) const

◆ getScale()

Vec3 Mat3::getScale ( ) const

◆ operator const float *()

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

◆ operator float *()

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

◆ operator()() [1/2]

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

◆ operator()() [2/2]

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

◆ setCol()

void Mat3::setCol ( int _i,
const Vec3 & _v )

◆ setRow()

void Mat3::setRow ( int _i,
const Vec3 & _v )

◆ setScale()

void Mat3::setScale ( const Vec3 & _scale)

Member Data Documentation

◆ m

float Im3d::Mat3::m[3 *3]

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