HOG2
|
A generic vector (essentially the same as a point, but offers normalization) More...
#include <GLUtil.h>
Public Member Functions | |
recVec () | |
recVec (GLdouble x_i, GLdouble y_i, GLdouble z_i) | |
void | normalise () |
Normalize a vector. More... | |
double | length () const |
recVec | GetNormal (recVec v) |
recVec & | operator+= (const recVec &v) |
recVec & | operator-= (const recVec &v) |
recVec | operator- (const recVec &v) |
recVec & | operator*= (GLdouble val) |
recVec | operator* (const recVec &val) const |
Public Attributes | |
GLdouble | x |
GLdouble | y |
GLdouble | z |
A generic vector (essentially the same as a point, but offers normalization)
|
inline |
double recVec::length | ( | ) | const |
void recVec::normalise | ( | ) |
Normalize a vector.
this really should be part of the recVec class – normalizes a vector
Definition at line 39 of file GLUtil.cpp.
References length(), x, y, and z.
Referenced by AirplaneEnvironment::AirplaneEnvironment(), Map::DoNormal(), GetNormal(), MCEnvironment::OpenGLDraw(), Map2DHeading::OpenGLDraw(), SteeringEnvironment::OpenGLDraw(), Directional2DEnvironment::OpenGLDraw(), and operator*().
|
inline |
GLdouble recVec::x |
Definition at line 98 of file GLUtil.h.
Referenced by ClusterAbstraction::addAbsNodes(), cameraLookAt(), cameraMoveTo(), cameraOffset(), line2d::crosses(), Map::DoNormal(), LoadedBBAbstraction::DrawGraph(), LoadedCliqueAbstraction::DrawGraph(), LoadedBBAbstraction::DrawLevelConnections(), LoadedCliqueAbstraction::DrawLevelConnections(), ConfigEnvironment::DrawLine(), RoboticArm::DrawLine(), ConfigEnvironment::GCost(), RoboticArm::GenerateLineSegments(), GetHeading(), LoadedBBAbstraction::GetNodeLoc(), LoadedCliqueAbstraction::GetNodeLoc(), GraphAbstraction::GetNodeLoc(), GetNormal(), RoboticArm::GetTipPosition(), ConfigEnvironment::GoalTest(), RoboticArm::GoalTest(), ConfigEnvironment::HCost(), RoboticArm::HCost(), ClusterAbstraction::insertNode(), length(), mousePan(), normalise(), ConfigEnvironment::OpenGLDraw(), MCEnvironment::OpenGLDraw(), IRDijkstra::OpenGLDraw(), Map2DHeading::OpenGLDraw(), AirplaneEnvironment::OpenGLDraw(), SteeringEnvironment::OpenGLDraw(), IRAStar::OpenGLDraw(), CFOptimalRefinement::OpenGLDraw(), RoboticArm::OpenGLDraw(), Directional2DEnvironment::OpenGLDraw(), operator*(), operator*=(), operator+=(), operator-=(), operator==(), recVec(), resetCamera(), and updateModelView().
GLdouble recVec::y |
Definition at line 98 of file GLUtil.h.
Referenced by ClusterAbstraction::addAbsNodes(), cameraLookAt(), cameraMoveTo(), cameraOffset(), line2d::crosses(), Map::DoNormal(), LoadedBBAbstraction::DrawGraph(), LoadedCliqueAbstraction::DrawGraph(), LoadedBBAbstraction::DrawLevelConnections(), LoadedCliqueAbstraction::DrawLevelConnections(), ConfigEnvironment::DrawLine(), RoboticArm::DrawLine(), ConfigEnvironment::GCost(), RoboticArm::GenerateLineSegments(), GetHeading(), LoadedBBAbstraction::GetNodeLoc(), LoadedCliqueAbstraction::GetNodeLoc(), GraphAbstraction::GetNodeLoc(), GetNormal(), RoboticArm::GetTipPosition(), ConfigEnvironment::GoalTest(), RoboticArm::GoalTest(), ConfigEnvironment::HCost(), RoboticArm::HCost(), ClusterAbstraction::insertNode(), length(), mousePan(), normalise(), ConfigEnvironment::OpenGLDraw(), MCEnvironment::OpenGLDraw(), IRDijkstra::OpenGLDraw(), Map2DHeading::OpenGLDraw(), AirplaneEnvironment::OpenGLDraw(), SteeringEnvironment::OpenGLDraw(), IRAStar::OpenGLDraw(), CFOptimalRefinement::OpenGLDraw(), RoboticArm::OpenGLDraw(), Directional2DEnvironment::OpenGLDraw(), operator*(), operator*=(), operator+=(), operator-=(), operator==(), recVec(), resetCamera(), and updateModelView().
GLdouble recVec::z |
Definition at line 98 of file GLUtil.h.
Referenced by ClusterAbstraction::addAbsNodes(), cameraLookAt(), cameraMoveTo(), cameraOffset(), Map::DoNormal(), LoadedBBAbstraction::DrawGraph(), LoadedCliqueAbstraction::DrawGraph(), LoadedBBAbstraction::DrawLevelConnections(), LoadedCliqueAbstraction::DrawLevelConnections(), ConfigEnvironment::GCost(), RoboticArm::GenerateLineSegments(), GetHeading(), LoadedBBAbstraction::GetNodeLoc(), LoadedCliqueAbstraction::GetNodeLoc(), GraphAbstraction::GetNodeLoc(), GetNormal(), ConfigEnvironment::GoalTest(), ConfigEnvironment::HCost(), ClusterAbstraction::insertNode(), length(), mouseDolly(), mousePan(), normalise(), ConfigEnvironment::OpenGLDraw(), MCEnvironment::OpenGLDraw(), IRDijkstra::OpenGLDraw(), Map2DHeading::OpenGLDraw(), AirplaneEnvironment::OpenGLDraw(), SteeringEnvironment::OpenGLDraw(), IRAStar::OpenGLDraw(), CFOptimalRefinement::OpenGLDraw(), RoboticArm::OpenGLDraw(), Directional2DEnvironment::OpenGLDraw(), operator*(), operator*=(), operator+=(), operator-=(), recVec(), resetCamera(), updateModelView(), and updateProjection().