mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-22 12:55:34 +00:00
AngAxis toEuler
Add Euler set and to functions to AngAxis. Removes the need to use a matrix
This commit is contained in:
parent
a4e2bfe34e
commit
5527207805
3 changed files with 72 additions and 5 deletions
|
|
@ -45,6 +45,7 @@ class AngAxisF
|
|||
explicit AngAxisF( const QuatF &q );
|
||||
|
||||
AngAxisF& set( const Point3F & _axis, F32 _angle );
|
||||
AngAxisF& set( const EulerF & _axis);
|
||||
AngAxisF& set( const MatrixF & m );
|
||||
AngAxisF& set( const QuatF & q );
|
||||
|
||||
|
|
@ -60,6 +61,7 @@ class AngAxisF
|
|||
static void RotateX(F32 angle, const Point3F & from, Point3F * to);
|
||||
static void RotateY(F32 angle, const Point3F & from, Point3F * to);
|
||||
static void RotateZ(F32 angle, const Point3F & from, Point3F * to);
|
||||
EulerF toEuler() const;
|
||||
};
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue