vengine  0.0.1
3D graphics engine
Loading...
Searching...
No Matches
ven::Transform3D Class Reference

Class for 3D transformation. More...

#include <Transform3D.hpp>

+ Collaboration diagram for ven::Transform3D:

Public Member Functions

glm::mat4 transformMatrix () const
 
glm::mat3 normalMatrix () const
 

Public Attributes

glm::vec3 translation {}
 
glm::vec3 scale {}
 
glm::vec3 rotation {}
 

Detailed Description

Class for 3D transformation.

Definition at line 18 of file Transform3D.hpp.

Member Function Documentation

◆ normalMatrix()

glm::mat3 ven::Transform3D::normalMatrix ( ) const
inlinenodiscard

Definition at line 34 of file Transform3D.hpp.

References transformMatrix().

+ Here is the call graph for this function:

◆ transformMatrix()

glm::mat4 ven::Transform3D::transformMatrix ( ) const
inlinenodiscard

Definition at line 22 of file Transform3D.hpp.

References rotation, scale, and translation.

Referenced by normalMatrix().

+ Here is the caller graph for this function:

Member Data Documentation

◆ rotation

glm::vec3 ven::Transform3D::rotation {}

◆ scale

glm::vec3 ven::Transform3D::scale {}

Definition at line 37 of file Transform3D.hpp.

Referenced by transformMatrix().

◆ translation

glm::vec3 ven::Transform3D::translation {}

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