scop
a small 3D object loader
Loading...
Searching...
No Matches
mat4 Class Reference

#include <Math.hpp>

Collaboration diagram for mat4:

Public Member Functions

 mat4 ()
 
 mat4 (float value)
 
 mat4 (const mat4 &other)
 
mat4operator= (const mat4 &other)
 
float & operator() (int row, int col)
 
const float & operator() (int row, int col) const
 
mat4 operator- (const mat4 &other) const
 
mat4 operator* (const mat4 &other) const
 
float * operator[] (int index)
 
const float * operator[] (int index) const
 
vec3 operator* (const vec3 &v) const
 

Public Attributes

float elements [4][4]
 

Friends

std::ostream & operator<< (std::ostream &os, const mat4 &m)
 

Detailed Description

Definition at line 172 of file Math.hpp.

Constructor & Destructor Documentation

◆ mat4() [1/3]

mat4::mat4 ( )
inline

Definition at line 177 of file Math.hpp.

◆ mat4() [2/3]

mat4::mat4 ( float value)
inline

Definition at line 184 of file Math.hpp.

◆ mat4() [3/3]

mat4::mat4 ( const mat4 & other)
inline

Definition at line 191 of file Math.hpp.

Member Function Documentation

◆ operator()() [1/2]

float & mat4::operator() ( int row,
int col )
inline

Definition at line 204 of file Math.hpp.

◆ operator()() [2/2]

const float & mat4::operator() ( int row,
int col ) const
inline

Definition at line 208 of file Math.hpp.

◆ operator*() [1/2]

mat4 mat4::operator* ( const mat4 & other) const
inline

Definition at line 222 of file Math.hpp.

◆ operator*() [2/2]

vec3 mat4::operator* ( const vec3 & v) const
inline

Definition at line 252 of file Math.hpp.

◆ operator-()

mat4 mat4::operator- ( const mat4 & other) const
inline

Definition at line 213 of file Math.hpp.

◆ operator=()

mat4 & mat4::operator= ( const mat4 & other)
inline

Definition at line 196 of file Math.hpp.

◆ operator[]() [1/2]

float * mat4::operator[] ( int index)
inline

Definition at line 232 of file Math.hpp.

◆ operator[]() [2/2]

const float * mat4::operator[] ( int index) const
inline

Definition at line 236 of file Math.hpp.

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream & os,
const mat4 & m )
friend

Definition at line 241 of file Math.hpp.

Member Data Documentation

◆ elements

float mat4::elements[4][4]

Definition at line 174 of file Math.hpp.


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