Botcraft 1.21.4
Loading...
Searching...
No Matches
Botcraft::Renderer::Rotation Class Reference

#include <Transformation.hpp>

Inheritance diagram for Botcraft::Renderer::Rotation:
Botcraft::Renderer::Transformation

Public Member Functions

 Rotation (const float axis_x_=0.0f, const float axis_y_=0.0f, const float axis_z_=0.0f, const float deg_angle_=0.0f)
 
virtual void ApplyTransformation (IMatrix &m) const override
 
virtual const std::string Print () const override
 

Public Attributes

float axis_x
 
float axis_y
 
float axis_z
 
float deg_angle
 

Detailed Description

Definition at line 33 of file Transformation.hpp.

Constructor & Destructor Documentation

◆ Rotation()

Botcraft::Renderer::Rotation::Rotation ( const float  axis_x_ = 0.0f,
const float  axis_y_ = 0.0f,
const float  axis_z_ = 0.0f,
const float  deg_angle_ = 0.0f 
)

Definition at line 42 of file Transformation.cpp.

References axis_x, axis_y, axis_z, and deg_angle.

Member Function Documentation

◆ ApplyTransformation()

void Botcraft::Renderer::Rotation::ApplyTransformation ( IMatrix m) const
overridevirtual

Implements Botcraft::Renderer::Transformation.

Definition at line 50 of file Transformation.cpp.

References axis_x, axis_y, axis_z, and deg_angle.

◆ Print()

const std::string Botcraft::Renderer::Rotation::Print ( ) const
overridevirtual

Implements Botcraft::Renderer::Transformation.

Definition at line 55 of file Transformation.cpp.

References axis_x, axis_y, axis_z, and deg_angle.

Member Data Documentation

◆ axis_x

float Botcraft::Renderer::Rotation::axis_x

Definition at line 41 of file Transformation.hpp.

Referenced by ApplyTransformation(), Print(), and Rotation().

◆ axis_y

float Botcraft::Renderer::Rotation::axis_y

Definition at line 42 of file Transformation.hpp.

Referenced by ApplyTransformation(), Print(), and Rotation().

◆ axis_z

float Botcraft::Renderer::Rotation::axis_z

Definition at line 43 of file Transformation.hpp.

Referenced by ApplyTransformation(), Print(), and Rotation().

◆ deg_angle

float Botcraft::Renderer::Rotation::deg_angle

Definition at line 44 of file Transformation.hpp.

Referenced by ApplyTransformation(), Print(), and Rotation().


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