V-ART
shearaction.cpp
Go to the documentation of this file.
1 
5 #include "vart/shearaction.h"
6 #include "vart/transform.h"
7 
8 //#include <iostream>
9 //using namespace std;
10 
11 VART::ShearAction::ShearAction() : goalX(0), goalY(0)
12 {
13 }
14 
15 void VART::ShearAction::SetShear(double shX, double shY)
16 {
17  goalX = shX;
18  goalY = shY;
19 }
20 
21 // virtual
23 {
24  bool cycled;
25  ComputePositionIndex(&cycled);
26  targetPtr->MakeShear(goalX * positionIndex, goalY * positionIndex);
27 }
void SetShear(double shX, double shY)
Definition: shearaction.cpp:15
Header file for V-ART class "ShearAction".
Header file for V-ART class "Transform".
virtual void Move()
Make the action update its targets.
Definition: shearaction.cpp:22