hgeVector helper class

hgeVector is a HGE helper class for 2D vector calculations.

hgeVector methods

Constructors Create and initalize hgeVector object.
Operators hgeVector operators.
  
Dot Returns dot product of two vectors.
Length Returns the vector length.
Angle Returns the angle between 2 vectors or between a vector and X-axis.
  
Clamp Limits the vector to a specified length.
Normalize Normalizes the vector.
Rotate Rotates the vector to the specified angle.

Related information

hgeVector data members

Requirements

Header: hgevector.h
Import library: hgehelp.lib