OpenLayer Offline Manual

OpenLayer | Vec2D | GetAngle GetAngle
inline float GetAngle() const
Returns the angle of the vector. Examples // Create a new vector called theVector with x = 15.0 and y = 20.0 // Vec2D theVector( 15.0, 20.0 ); // Get the angle of the vector // float angle = theVector.GetAngle(); Other functions of the class Vec2D
GetMagnitude | Returns the magnitude (length) of the vector
GetAngle | Returns the angle of the vector
Normalized | Returns a normalized copy of the vector
Advanced functions
GetMagnitudeSquared | Returns the squared magnitude of the vector
Back to the main page of the manual Questions about GetAngle? Click here.