KJB
g2_rotation.h
Go to the documentation of this file.
1 /* \$Id: g2_rotation.h 18278 2014-11-25 01:42:10Z ksimek \$ */
2 /* =========================================================================== *
3  |
4  | Copyright (c) 1994-2010 by Kobus Barnard (author)
5  |
6  | Personal and educational use of this code is granted, provided that this
7  | header is kept intact, and that the authorship is not misrepresented, that
8  | its use is acknowledged in publications, and relevant papers are cited.
9  |
10  | For other use contact the author (kobus AT cs DOT arizona DOT edu).
11  |
12  | Please note that the code in this file has not necessarily been adequately
13  | tested. Naturally, there is no guarantee of performance, support, or fitness
14  | for any particular task. Nonetheless, I am interested in hearing about
15  | problems that you encounter.
16  |
17  | Author: Kyle Simek
18  * =========================================================================== */
19
23 #ifndef KJB_G2_CPP_ROTATION_H
24 #define KJB_G2_CPP_ROTATION_H
25
26 #include <m_cpp/m_vector.h>
27
28 namespace kjb
29 {
30 class Matrix;
31
42 {
43 public:
52  Rotation_axis(const Vector& pt, const Vector& dir);
53
60  Vector rotate(const Vector& pt, double angle) const;
61
67  Matrix get_transformation_matrix(double a) const;
68 private:
69  Vector axis_pt_;
70  Vector axis_dir_;
71 }; // class Rotation_axis
72
73 } // namespace kjb
74
75 #endif
Definition: g2_rotation.h:41
Rotation_axis(const Vector &pt, const Vector &dir)
Definition: g2_rotation.cpp:28
This class implements vectors, in the linear-algebra sense, with real-valued elements.
Definition: m_vector.h:87
Vector rotate(const Vector &pt, double angle) const
Definition: g2_rotation.cpp:34
Matrix get_transformation_matrix(double a) const
Definition: g2_rotation.cpp:49
This class implements matrices, in the linear-algebra sense, with real-valued elements.
Definition: m_matrix.h:94
Definition for the Vector class, a thin wrapper on the KJB Vector struct and its related functionalit...