Rehti MMORPG  1.0.0
Rehti MMORPG is a free and open source MMORPG game.
GfxOrientation Struct Reference

#include <BasicTypes.hpp>

Collaboration diagram for GfxOrientation:
Collaboration graph

Public Member Functions

glm::mat4 getTransformationMatrix () const
 Compiles the transformation matrix of this orientation. More...
 

Static Public Member Functions

static GfxOrientation interpolate (GfxOrientation first, GfxOrientation second, float factor)
 Interpolates between two orientations linearly. More...
 

Public Attributes

glm::vec3 position
 position of the node More...
 
glm::quat rotation
 rotation of the node More...
 
glm::vec3 scale
 scale of the node More...
 

Member Function Documentation

◆ getTransformationMatrix()

glm::mat4 GfxOrientation::getTransformationMatrix ( ) const

Compiles the transformation matrix of this orientation.

Returns
Matrix that represents the transformation of this orientation.
Here is the caller graph for this function:

◆ interpolate()

GfxOrientation GfxOrientation::interpolate ( GfxOrientation  first,
GfxOrientation  second,
float  factor 
)
static

Interpolates between two orientations linearly.

Parameters
firstis the initial orientation
secondis the target orientation
factoris how much of the second orientation should be used.
Returns
orientation linearly interpolated between the two orientations.
Here is the caller graph for this function:

Member Data Documentation

◆ position

glm::vec3 GfxOrientation::position

position of the node

◆ rotation

glm::quat GfxOrientation::rotation

rotation of the node

◆ scale

glm::vec3 GfxOrientation::scale

scale of the node


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