V-ART
rotationaction.cpp
Go to the documentation of this file.
1 
5 #include "vart/rotationaction.h"
6 #include "vart/transform.h"
7 
8 #include <iostream>
9 using namespace std;
10 
12 {
13 }
14 
16 {
17  goal = radians;
18  refPoint = Point4D::ORIGIN();
19  refVector = Point4D::X();
20 }
21 
23 {
24  goal = radians;
25  refPoint = Point4D::ORIGIN();
26  refVector = Point4D::Y();
27 }
28 
30 {
31  goal = radians;
32  refPoint = Point4D::ORIGIN();
33  refVector = Point4D::Z();
34 }
35 
36 // virtual
38 {
39  bool cycled;
40  ComputePositionIndex(&cycled);
41  targetPtr->MakeRotation(refPoint, refVector, goal * positionIndex);
42 }
43 
Header file for V-ART class "RotationAction".
Header file for V-ART class "Transform".
void SetXRotation(double radians)
virtual void Move()
Make the action update its targets.
void SetZRotation(double radians)
void SetYRotation(double radians)