Skip to content
Snippets Groups Projects
Commit d2c0d4f4 authored by sebastianfreitag's avatar sebastianfreitag
Browse files

APIADD: VistaTransformNode: convenience interfaces GetTranslation(), GetRotation(), GetTransform()

parent 58ddbfd7
No related branches found
No related tags found
No related merge requests found
......@@ -240,15 +240,38 @@ bool VistaTransformNode::GetTranslation( VistaVector3D& v3Translation ) const
{
return m_pBridge->GetTranslation( v3Translation, m_pData );
}
VistaVector3D VistaTransformNode::GetTranslation() const
{
VistaVector3D v3Translation;
this->GetTranslation(v3Translation);
return v3Translation;
}
bool VistaTransformNode::GetRotation(VistaQuaternion& qRotation) const
{
return m_pBridge->GetRotation( qRotation, m_pData );
}
VistaQuaternion VistaTransformNode::GetRotation() const
{
VistaQuaternion qRotation;
this->GetRotation(qRotation);
return qRotation;
}
bool VistaTransformNode::GetTransform(VistaTransformMatrix& matTransform) const
{
return m_pBridge->GetTransform( matTransform, m_pData );
}
VistaTransformMatrix VistaTransformNode::GetTransform() const
{
VistaTransformMatrix matTransform;
this->GetTransform(matTransform);
return matTransform;
}
/*============================================================================*/
/* LOCAL VARS AND FUNCS */
/*============================================================================*/
......
......@@ -104,6 +104,11 @@ public:
using VistaNode::GetRotation;
using VistaNode::GetTransform;
// convenience interface
VistaVector3D GetTranslation() const;
VistaQuaternion GetRotation() const;
VistaTransformMatrix GetTransform() const;
protected:
VistaTransformNode();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment