V-ART
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
source
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
22
void
VART::ShearAction::Move
()
23
{
24
bool
cycled;
25
ComputePositionIndex(&cycled);
26
targetPtr->MakeShear(goalX * positionIndex, goalY * positionIndex);
27
}
VART::ShearAction::SetShear
void SetShear(double shX, double shY)
Definition:
shearaction.cpp:15
shearaction.h
Header file for V-ART class "ShearAction".
transform.h
Header file for V-ART class "Transform".
VART::ShearAction::Move
virtual void Move()
Make the action update its targets.
Definition:
shearaction.cpp:22
VART::ShearAction::ShearAction
ShearAction()
Definition:
shearaction.cpp:11
Generated on Tue May 6 2014 15:09:54 for V-ART by
1.8.6