GteAxisAngle.h
Go to the documentation of this file.
1 // David Eberly, Geometric Tools, Redmond WA 98052
2 // Copyright (c) 1998-2017
3 // Distributed under the Boost Software License, Version 1.0.
4 // http://www.boost.org/LICENSE_1_0.txt
5 // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
6 // File Version: 3.0.0 (2016/06/19)
7 
8 #pragma once
9 
10 #include <Mathematics/GteVector.h>
11 
12 namespace gte
13 {
14 
15 // Axis-angle representation for N = 3 or N = 4. When N = 4, the axis
16 // must be a vector of the form (x,y,z,0) [affine representation of the
17 // 3-tuple direction].
18 
19 template <int N, typename Real>
20 class AxisAngle
21 {
22 public:
23  AxisAngle();
24  AxisAngle(Vector<N,Real> const& inAxis, Real inAngle);
25 
27  Real angle;
28 };
29 
30 
31 template <int N, typename Real>
33 {
34  static_assert(N == 3 || N == 4, "Dimension must be 3 or 4.");
35  // Uninitialized.
36 }
37 
38 template <int N, typename Real>
39 AxisAngle<N, Real>::AxisAngle(Vector<N, Real> const& inAxis, Real inAngle)
40  :
41  axis(inAxis),
42  angle(inAngle)
43 {
44  static_assert(N == 3 || N == 4, "Dimension must be 3 or 4.");
45 }
46 
47 
48 }
GLfloat angle
Definition: glext.h:6466
Vector< N, Real > axis
Definition: GteAxisAngle.h:26


geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 03:59:59