#include <Transformable.h>
Definition at line 37 of file Transformable.h.
◆ Transformable()
| IncrementalEngine::Transformable::Transformable |
( |
| ) |
|
◆ GetInverseTransform()
| const Transform & IncrementalEngine::Transformable::GetInverseTransform |
( |
| ) |
const |
◆ GetOrigin()
| const D3DXVECTOR2 & IncrementalEngine::Transformable::GetOrigin |
( |
| ) |
const |
|
virtual |
◆ GetPosition()
| const D3DXVECTOR2 & IncrementalEngine::Transformable::GetPosition |
( |
| ) |
const |
|
virtual |
◆ GetRotation()
| float IncrementalEngine::Transformable::GetRotation |
( |
| ) |
const |
|
virtual |
◆ GetScale()
| const D3DXVECTOR2 & IncrementalEngine::Transformable::GetScale |
( |
| ) |
const |
|
virtual |
◆ GetTransform()
| const Transform & IncrementalEngine::Transformable::GetTransform |
( |
| ) |
const |
Definition at line 140 of file Transformable.cpp.
144 float angle = -
_rotation * 3.141592654f / 180.f;
145 float cosine =
static_cast<float>(std::cos(angle));
146 float sine =
static_cast<float>(std::sin(angle));
147 float sxc =
_scale.x * cosine;
148 float syc =
_scale.y * cosine;
149 float sxs =
_scale.x * sine;
150 float sys =
_scale.y * sine;
◆ Move() [1/2]
| void IncrementalEngine::Transformable::Move |
( |
const D3DXVECTOR2 & |
offset | ) |
|
◆ Move() [2/2]
| void IncrementalEngine::Transformable::Move |
( |
float |
offsetX, |
|
|
float |
offsetY |
|
) |
| |
◆ Rotate()
| void IncrementalEngine::Transformable::Rotate |
( |
float |
angle | ) |
|
◆ Scale() [1/2]
| void IncrementalEngine::Transformable::Scale |
( |
const D3DXVECTOR2 & |
factor | ) |
|
◆ Scale() [2/2]
| void IncrementalEngine::Transformable::Scale |
( |
float |
factorX, |
|
|
float |
factorY |
|
) |
| |
◆ SetOrigin() [1/2]
| void IncrementalEngine::Transformable::SetOrigin |
( |
const D3DXVECTOR2 & |
origin | ) |
|
|
virtual |
◆ SetOrigin() [2/2]
| void IncrementalEngine::Transformable::SetOrigin |
( |
float |
x, |
|
|
float |
y |
|
) |
| |
|
virtual |
◆ SetPosition() [1/2]
| void IncrementalEngine::Transformable::SetPosition |
( |
const D3DXVECTOR2 & |
position | ) |
|
|
virtual |
◆ SetPosition() [2/2]
| void IncrementalEngine::Transformable::SetPosition |
( |
float |
x, |
|
|
float |
y |
|
) |
| |
|
virtual |
◆ SetRotation()
| void IncrementalEngine::Transformable::SetRotation |
( |
float |
angle | ) |
|
|
virtual |
◆ SetScale() [1/2]
| void IncrementalEngine::Transformable::SetScale |
( |
const D3DXVECTOR2 & |
factors | ) |
|
|
virtual |
◆ SetScale() [2/2]
| void IncrementalEngine::Transformable::SetScale |
( |
float |
factorX, |
|
|
float |
factorY |
|
) |
| |
|
virtual |
◆ _inverseTransform
| Transform IncrementalEngine::Transformable::_inverseTransform |
|
mutableprivate |
◆ _inverseTransformNeedUpdate
| bool IncrementalEngine::Transformable::_inverseTransformNeedUpdate |
|
mutableprivate |
◆ _origin
| D3DXVECTOR2 IncrementalEngine::Transformable::_origin |
|
private |
◆ _position
| D3DXVECTOR2 IncrementalEngine::Transformable::_position |
|
private |
◆ _rotation
| float IncrementalEngine::Transformable::_rotation |
|
private |
◆ _scale
| D3DXVECTOR2 IncrementalEngine::Transformable::_scale |
|
private |
◆ _transform
| Transform IncrementalEngine::Transformable::_transform |
|
mutableprivate |
◆ _transformNeedUpdate
| bool IncrementalEngine::Transformable::_transformNeedUpdate |
|
mutableprotected |