Anim 0.1
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
AnimationSystem::Transform2d Struct Reference

A 2d transform, a node in a transform tree. More...

#include <Transform2d.h>

Collaboration diagram for AnimationSystem::Transform2d:

Public Member Functions

 Transform2d (gef::Vector2 const &translation, float const rotationDegrees=0, gef::Vector2 const &scale=gef::Vector2::kOne)
 
 Transform2d (Transform2d const &other)=delete
 
 Transform2d (Transform2d &&other) noexcept
 
Transform2doperator= (Transform2d const &other)
 
Transform2doperator= (Transform2d &&other) noexcept
 
Transform2d CopyTransformMatrix () const
 
void SetParent (Transform2d const &parent)
 
gef::Matrix33 GetWorldTransform () const
 
gef::Matrix33 GetLocalTransform () const
 
void SetToIdentity ()
 
void SetPosition (gef::Vector2 const &translation)
 
void SetScale (gef::Vector2 const &scale)
 
void SetRotationDegrees (float const degrees)
 
void ChangeTranslation (gef::Vector2 const &translation)
 
void ChangeRotationDegrees (float degrees)
 
bool IsRoot () const
 
Transform2d const & GetParent () const
 
void SetFrom (Transform2d const &transform)
 
gef::Vector2 GetLocalPosition () const
 
gef::Vector2 GetLocalScale () const
 
float GetLocalRotationDegrees () const
 
void CreateFromParsedData (std::unique_ptr< FileParsing::JsonResult > const &data, std::string const &name="transform")
 

Static Public Member Functions

static gef::Vector2 GetLocalPosition (gef::Matrix33 const &matrix33)
 
static gef::Vector2 GetLocalScale (gef::Matrix33 const &matrix33)
 
static float GetLocalRotationDegrees (gef::Matrix33 const &matrix33)
 

Detailed Description

A 2d transform, a node in a transform tree.

Member Function Documentation

◆ CopyTransformMatrix()

Transform2d AnimationSystem::Transform2d::CopyTransformMatrix ( ) const
inline
Returns
Create a new transform, matrix only (no parent or children) from this transform

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