Main Page | Class Hierarchy | Class List | Class Members

SC::Math::Vector2 Class Reference

List of all members.

Public Member Functions

float DistanceSquare (Vector2 p)
 Vector2 ()
 Vector2 (float x, float y)

Static Public Member Functions

Vector2 operator * (Vector2 left, float scalar)
Vector2 operator * (float scalar, Vector2 right)
Vector2 operator+ (Vector2 left, Vector2 right)
Vector2 operator- (Vector2 left, Vector2 right)

Detailed Description

2 dimensional vector.


Constructor & Destructor Documentation

SC::Math::Vector2::Vector2  )  [inline]
 

Default constructor.

SC::Math::Vector2::Vector2 float  x,
float  y
[inline]
 

Constructor. X position. Y position


Member Function Documentation

float SC::Math::Vector2::DistanceSquare Vector2  p  )  [inline]
 

Determines the squared distance to a point. The point. The squared distance.

Vector2 SC::Math::Vector2::operator * float  scalar,
Vector2  right
[inline, static]
 

Used when a scalar value is multiplied by a Vector2.

Vector2 SC::Math::Vector2::operator * Vector2  left,
float  scalar
[inline, static]
 

Used when a Vector2 is multiplied by a scalar value.

Vector2 SC::Math::Vector2::operator+ Vector2  left,
Vector2  right
[inline, static]
 

Used when a Vector2 is added to another Vector2.

Vector2 SC::Math::Vector2::operator- Vector2  left,
Vector2  right
[inline, static]
 

Used when a Vector2 is substracted from another Vector2.


The documentation for this class was generated from the following file:
Generated on Sat Jan 15 23:59:00 2005 for StreamCtrl by doxygen 1.3.6