Optimized Node::GetTransformMatrix
Former-commit-id: b7eadb5a47ec6c2a9d24b19f45058e1ce5d0be49
This commit is contained in:
parent
a1a1a3da0c
commit
53730b532d
|
|
@ -31,7 +31,7 @@ class NAZARA_API NzNode
|
||||||
NzQuaternionf GetRotation() const;
|
NzQuaternionf GetRotation() const;
|
||||||
NzVector3f GetScale() const;
|
NzVector3f GetScale() const;
|
||||||
NzVector3f GetTranslation() const;
|
NzVector3f GetTranslation() const;
|
||||||
NzMatrix4f GetTransformMatrix() const;
|
const NzMatrix4f& GetTransformMatrix() const;
|
||||||
|
|
||||||
NzNode& Interpolate(const NzNode& nodeA, const NzNode& nodeB, float interpolation);
|
NzNode& Interpolate(const NzNode& nodeA, const NzNode& nodeB, float interpolation);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -101,7 +101,7 @@ NzVector3f NzNode::GetTranslation() const
|
||||||
return m_translation;
|
return m_translation;
|
||||||
}
|
}
|
||||||
|
|
||||||
NzMatrix4f NzNode::GetTransformMatrix() const
|
const NzMatrix4f& NzNode::GetTransformMatrix() const
|
||||||
{
|
{
|
||||||
if (!m_matrixUpdated)
|
if (!m_matrixUpdated)
|
||||||
UpdateMatrix();
|
UpdateMatrix();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue