1 #ifndef CONSTRAINT_AREA_H
2 #define CONSTRAINT_AREA_H
10 using namespace vrecko;
12 namespace APConstrainedMovement {
13 typedef vector<osg::Vec3>
Vecs3;
15 double vectorAngle(osg::Vec3 vector1, osg::Vec3 vector2);
20 osg::Vec3 normalVector;
21 osg::Vec3 normalVectorWorld;
23 Vecs3 boundingPointsWorld;
24 string areaClassString;
25 string restrictorString;
36 cachedConstraintHierarchyMember = NULL;};
40 void addBoundingPoint(osg::Vec3 &coords);
44 void shift(osg::Vec3 shiftVector);
46 void setNormalVector(osg::Vec3 &normalVector);
51 void applyTransformation(osg::Matrix transformationMatrix);