Osiris Framework  0.3
OMatrix4x4 Class Reference

Represents 4x4 matrices. More...

#include <OsirisSDK/OMath.h>

Inheritance diagram for OMatrix4x4:
OMathPrimitive< glm::mat4x4 >

Public Member Functions

 OMatrix4x4 ()
 Class constructor.
 
 OMatrix4x4 (float identValue)
 Class constructor that creates a diagonal matrix with values defined by the input parameter. More...
 
 OMatrix4x4 (const OMatrix4x4 &in)
 Class copy constructor.
 
 OMatrix4x4 (const OMathPrimitive< glm::mat4x4 > &in)
 Class copy constructor for the base template class.
 
virtual ~OMatrix4x4 ()
 Class destructor.
 
OVector4 operator* (const OVector4 &in) const
 Matrix product operator for four-dimentional vectors.
 
OMatrix4x4 operator* (const OMatrix4x4 &in) const
 
void setValue (int row, int col, float value)
 Set the value of a specific matrix element. More...
 
float value (int row, int col) const
 Returns the value of a specific matrix element. More...
 
- Public Member Functions inherited from OMathPrimitive< glm::mat4x4 >
 OMathPrimitive ()
 Class constructor.
 
 OMathPrimitive (const OMathPrimitive< glm::mat4x4 > &in)
 Copy constructor.
 
virtual ~OMathPrimitive ()
 Class destructor.
 
OMathPrimitive< glm::mat4x4 > normalize ()
 Creates a normalized object out of the current one.
 
OMathPrimitive< glm::mat4x4 > & operator= (const OMathPrimitive< glm::mat4x4 > &in)
 
OMathPrimitive< glm::mat4x4 > & operator*= (const OMathPrimitive< glm::mat4x4 > &in)
 
OMathPrimitive< glm::mat4x4 > & operator*= (float x)
 
OMathPrimitive< glm::mat4x4 > operator* (const OMathPrimitive< glm::mat4x4 > &in) const
 
virtual OMathPrimitive< glm::mat4x4 > operator* (float x) const
 
OMathPrimitive< glm::mat4x4 > & operator+= (const OMathPrimitive< glm::mat4x4 > &in)
 
OMathPrimitive< glm::mat4x4 > operator+ (const OMathPrimitive< glm::mat4x4 > &in) const
 
OMathPrimitive< glm::mat4x4 > & operator-= (const OMathPrimitive< glm::mat4x4 > &in)
 
OMathPrimitive< glm::mat4x4 > operator- (const OMathPrimitive< glm::mat4x4 > &in) const
 
bool operator== (const OMathPrimitive< glm::mat4x4 > &in) const
 
bool operator!= (const OMathPrimitive< glm::mat4x4 > &in) const
 
const GLfloat * glArea () const
 Returns a pointer to the memory area to be used by OpenGL. For internal library usage only.
 

Additional Inherited Members

- Protected Attributes inherited from OMathPrimitive< glm::mat4x4 >
glm::mat4x4 _glmInternal
 

Detailed Description

Represents 4x4 matrices.

Constructor & Destructor Documentation

OMatrix4x4::OMatrix4x4 ( float  identValue)

Class constructor that creates a diagonal matrix with values defined by the input parameter.

Parameters
identValueValues of the matrix main diagonal elements.

Member Function Documentation

void OMatrix4x4::setValue ( int  row,
int  col,
float  value 
)

Set the value of a specific matrix element.

Parameters
rowRow index number.
colColumn index number.
valueNew element value.
float OMatrix4x4::value ( int  row,
int  col 
) const

Returns the value of a specific matrix element.

Parameters
rowRow index number.
colColumn index number.
Returns
Element value.

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