Hummingbird Framework
 All Classes Functions Variables Modules Pages
Transform.h
1 #ifndef HB_TRANSFORM_H
2 #define HB_TRANSFORM_H
3 #include "Vector3d.h"
4 
5 namespace hb
6 {
12  class Transform
13  {
14  public:
20  Transform();
24  Transform(const Vector3d& init_pos);
28  ~Transform();
33  const Vector3d& getPosition() const;
38  void setPosition(const Vector3d& p);
45  void setPosition(double p_x, double p_y, double p_z);
50  const Vector3d& getRotation() const;
55  void setRotation(const Vector3d& rotation);
62  void setRotation(double rotation_x, double rotation_y, double rotation_z);
67  const Vector3d& getScale() const;
72  void setScale(const Vector3d& scale);
79  void setScale(double scale_x, double scale_y, double scale_z);
80 
81  private:
82  Vector3d m_position;
83  Vector3d m_scale;
84  Vector3d m_rotation_angle;
85  };
86 }
87 #endif
Object with a position, rotation and scale in a 3D space.
Definition: Transform.h:12
void setPosition(const Vector3d &p)
Set position from a Vector3d.
A 3D vector.
Definition: Vector3d.h:14
const Vector3d & getScale() const
Get Transform scale.
Definition: Box2DPlugin.h:6
const Vector3d & getPosition() const
Get Transform position.
const Vector3d & getRotation() const
Get Transform rotation.
void setScale(const Vector3d &scale)
Set scale from a Vector3d.
~Transform()
Class destructor.
Transform()
Default constructor.
void setRotation(const Vector3d &rotation)
Set rotation from a Vector3d.