GLVis  v4.2
Accurate and flexible finite element visualization
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Public Attributes | List of all members
gl3::GlMatrix Struct Reference

#include <types.hpp>

Public Member Functions

void rotate (float angle, double x, double y, double z)
 Applies a rotation transform to the matrix. More...
 
void mult (glm::mat4 rhs)
 
void translate (double x, double y, double z)
 Applies a translation transform to the matrix. More...
 
void scale (double x, double y, double z)
 Applies a scale transform to the matrix. More...
 
void ortho (double left, double right, double bottom, double top, double z_near, double z_far)
 Sets the matrix to an orthographic projection. More...
 
void perspective (double fov, double aspect, double z_near, double z_far)
 Sets the matrix to a perspective projection. More...
 
void identity ()
 Sets the matrix to the identity matrix. More...
 

Public Attributes

glm::mat4 mtx
 

Detailed Description

Definition at line 119 of file types.hpp.

Member Function Documentation

void gl3::GlMatrix::identity ( )
inline

Sets the matrix to the identity matrix.

Definition at line 164 of file types.hpp.

void gl3::GlMatrix::mult ( glm::mat4  rhs)
inline

Definition at line 129 of file types.hpp.

void gl3::GlMatrix::ortho ( double  left,
double  right,
double  bottom,
double  top,
double  z_near,
double  z_far 
)
inline

Sets the matrix to an orthographic projection.

Definition at line 147 of file types.hpp.

void gl3::GlMatrix::perspective ( double  fov,
double  aspect,
double  z_near,
double  z_far 
)
inline

Sets the matrix to a perspective projection.

Definition at line 158 of file types.hpp.

void gl3::GlMatrix::rotate ( float  angle,
double  x,
double  y,
double  z 
)
inline

Applies a rotation transform to the matrix.

Definition at line 124 of file types.hpp.

void gl3::GlMatrix::scale ( double  x,
double  y,
double  z 
)
inline

Applies a scale transform to the matrix.

Definition at line 141 of file types.hpp.

void gl3::GlMatrix::translate ( double  x,
double  y,
double  z 
)
inline

Applies a translation transform to the matrix.

Definition at line 135 of file types.hpp.

Member Data Documentation

glm::mat4 gl3::GlMatrix::mtx

Definition at line 121 of file types.hpp.


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