V-ART
translationaction.cpp
Go to the documentation of this file.
1 
6 #include "vart/transform.h"
7 
8 #include <iostream>
9 using namespace std;
10 
12 {
13 }
14 
15 // virtual
17 {
18  bool cycled;
19  ComputePositionIndex(&cycled);
20  targetPtr->MakeTranslation(goal * positionIndex);
21 }
22 
23 void VART::TranslationAction::SetTranslation(double tx, double ty, double tz)
24 {
25  goal.SetXYZW(tx, ty, tz, 0);
26 }
27 
29 {
30  goal = vector;
31 }
Points and vectors using homogeneous coordinates.
Definition: point4d.h:22
void SetTranslation(double tx, double ty, double tz)
Header file for V-ART class "Transform".
virtual void Move()
Make the action update its targets.
Header file for V-ART class "TranslationAction".