1234567891011121314151617181920212223242526272829303132333435363738394041 |
- #pragma once
- #include <Mathematics/Vector.h>
- namespace WwiseGTE
- {
-
-
-
- template <int N, typename Real>
- class AxisAngle
- {
- public:
- AxisAngle()
- :
- axis(Vector<N, Real>::Zero()),
- angle((Real)0)
- {
- static_assert(N == 3 || N == 4, "Dimension must be 3 or 4.");
- }
- AxisAngle(Vector<N, Real> const& inAxis, Real inAngle)
- :
- axis(inAxis),
- angle(inAngle)
- {
- static_assert(N == 3 || N == 4, "Dimension must be 3 or 4.");
- }
- Vector<N, Real> axis;
- Real angle;
- };
- }
|