UGDK  0.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ugdk::math::Geometry Class Reference

#include <ugdk/math/geometry.h>

Public Member Functions

 Geometry ()
 Creates an identity Geometry;. More...
 
 Geometry (const math::Vector2D &offset, const math::Vector2D scale=math::Vector2D(1.0, 1.0), double rot=0.0)
 Creates a new Geometry object with the specified values. More...
 
 ~Geometry ()
 
double rotation () const
 
ugdk::math::Vector2D offset () const
 Calculates by how much this Geometry translates the rendering. More...
 
void set_offset (const ugdk::math::Vector2D &_offset)
 
void ChangeOffset (const math::Vector2D &_offset)
 
void Compose (const Geometry &other)
 
Geometryoperator*= (const Geometry &rhs)
 
Geometry operator* (const Geometry &rhs) const
 
const glm::mat4 & AsMat4 () const
 
math::Vector2D CalculateScale () const
 

Constructor & Destructor Documentation

ugdk::math::Geometry::Geometry ( )
inline

Creates an identity Geometry;.

ugdk::math::Geometry::Geometry ( const math::Vector2D offset,
const math::Vector2D  scale = math::Vector2D(1.0, 1.0),
double  rot = 0.0 
)
inline

Creates a new Geometry object with the specified values.

Parameters
offsetThe offset of the image.
scaleThe size modifiers for the image. X and Y values can be set independently.
rotRotation angle in radians. 0 points to the right, increases in counterclockwise fashion.
ugdk::math::Geometry::~Geometry ( )
inline

Member Function Documentation

const glm::mat4& ugdk::math::Geometry::AsMat4 ( ) const
inline
math::Vector2D ugdk::math::Geometry::CalculateScale ( ) const
inline
void ugdk::math::Geometry::ChangeOffset ( const math::Vector2D _offset)
inline
void ugdk::math::Geometry::Compose ( const Geometry other)
inline
ugdk::math::Vector2D ugdk::math::Geometry::offset ( ) const
inline

Calculates by how much this Geometry translates the rendering.

Geometry ugdk::math::Geometry::operator* ( const Geometry rhs) const
inline
Geometry& ugdk::math::Geometry::operator*= ( const Geometry rhs)
inline
double ugdk::math::Geometry::rotation ( ) const
inline
void ugdk::math::Geometry::set_offset ( const ugdk::math::Vector2D _offset)
inline

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