Vector2 Class Reference

#include <Vector2.h>

List of all members.

Public Member Functions

 Vector2 ()
 Vector2 (float xinit, float yinit)
 Vector2 (const Vector2 &other)
 Vector2 (float scalar)
float operator[] (int i) const
float & operator[] (int i)
Vector2operator= (const Vector2 &other)
Vector2operator= (float scalar)
void operator+= (const Vector2 &)
void operator-= (const Vector2 &)
void operator *= (const Vector2 &)
void operator *= (const float)
void operator/= (const Vector2 &)
void operator/= (const float)
float Norm () const
void Negate ()
void Set (float px, float py)
void Set (float)
Vector2 Normalized () const
Vector2 Absolute () const
Vector2 Reciprocal () const
Vector2 Orthogonal () const
float Normalize ()
float Dot (const Vector2 &)

Public Attributes

float x
float y

Friends

Vector2 operator- (const Vector2 &)
Vector2 operator+ (const Vector2 &, const Vector2 &)
Vector2 operator- (const Vector2 &, const Vector2 &)
Vector2 operator * (const Vector2 &, const float)
Vector2 operator * (const float, const Vector2 &)
Vector2 operator/ (const Vector2 &, const float)
Vector2 operator * (const Vector2 &, const Vector2 &)
float operator| (const Vector2 &, const Vector2 &)
float operator^ (const Vector2 &, const Vector2 &)
int operator== (const Vector2 &, const Vector2 &)
int operator!= (const Vector2 &, const Vector2 &)
void Swap (Vector2 &, Vector2 &)
float Dot (const Vector2 &a, const Vector2 &b)
Vector2 ToVector2 (const Vector &p)


Detailed Description

Definition at line 12 of file Vector2.h.


Constructor & Destructor Documentation

Vector2::Vector2  )  [inline]
 

Definition at line 16 of file Vector2.h.

Referenced by Absolute(), Orthogonal(), and Reciprocal().

Vector2::Vector2 float  xinit,
float  yinit
[inline]
 

Definition at line 17 of file Vector2.h.

References x, and y.

Vector2::Vector2 const Vector2 other  )  [inline]
 

Definition at line 22 of file Vector2.h.

References x, and y.

Vector2::Vector2 float  scalar  )  [inline]
 

Definition at line 27 of file Vector2.h.

References x, and y.


Member Function Documentation

Vector2 Vector2::Absolute  )  const [inline]
 

Definition at line 239 of file Vector2.h.

References Vector2(), x, and y.

Here is the call graph for this function:

float Vector2::Dot const Vector2  )  [inline]
 

Definition at line 217 of file Vector2.h.

void Vector2::Negate  )  [inline]
 

Definition at line 149 of file Vector2.h.

References x, and y.

Referenced by Vector::operator-(), and Quaternion::operator-().

float Vector2::Norm void   )  const [inline]
 

Definition at line 60 of file Vector2.h.

References x, and y.

Referenced by Normalize(), and Normalized().

float Vector2::Normalize void   )  [inline]
 

Definition at line 72 of file Vector2.h.

References Norm().

Here is the call graph for this function:

Vector2 Vector2::Normalized  )  const [inline]
 

Definition at line 229 of file Vector2.h.

References Norm().

Here is the call graph for this function:

void Vector2::operator *= const   float  )  [inline]
 

Definition at line 131 of file Vector2.h.

References x, and y.

void Vector2::operator *= const Vector2  )  [inline]
 

Definition at line 125 of file Vector2.h.

References x, and y.

void Vector2::operator+= const Vector2  )  [inline]
 

Definition at line 113 of file Vector2.h.

References x, and y.

void Vector2::operator-= const Vector2  )  [inline]
 

Definition at line 119 of file Vector2.h.

References x, and y.

void Vector2::operator/= const   float  )  [inline]
 

Definition at line 137 of file Vector2.h.

References x, and y.

void Vector2::operator/= const Vector2  )  [inline]
 

Definition at line 143 of file Vector2.h.

References x, and y.

Vector2& Vector2::operator= float  scalar  )  [inline]
 

Definition at line 47 of file Vector2.h.

References x, and y.

Vector2& Vector2::operator= const Vector2 other  )  [inline]
 

Definition at line 41 of file Vector2.h.

References x, and y.

float& Vector2::operator[] int  i  )  [inline]
 

Definition at line 36 of file Vector2.h.

References x.

float Vector2::operator[] int  i  )  const [inline]
 

Definition at line 32 of file Vector2.h.

References x.

Vector2 Vector2::Orthogonal  )  const [inline]
 

Definition at line 249 of file Vector2.h.

References Vector2(), x, and y.

Here is the call graph for this function:

Vector2 Vector2::Reciprocal  )  const [inline]
 

Definition at line 244 of file Vector2.h.

References Vector2(), x, and y.

Here is the call graph for this function:

void Vector2::Set float   )  [inline]
 

Definition at line 161 of file Vector2.h.

References x, and y.

void Vector2::Set float  px,
float  py
[inline]
 

Definition at line 155 of file Vector2.h.

References x, and y.

Referenced by IEMapNode::IEMapNode().


Friends And Related Function Documentation

float Dot const Vector2 a,
const Vector2 b
[friend]
 

Definition at line 97 of file Vector2.h.

Vector2 operator * const Vector2 a,
const Vector2 b
[friend]
 

Definition at line 197 of file Vector2.h.

Vector2 operator * const float  s,
const Vector2 a
[friend]
 

Definition at line 192 of file Vector2.h.

Vector2 operator * const Vector2 a,
const float  s
[friend]
 

Definition at line 187 of file Vector2.h.

int operator!= const Vector2 a,
const Vector2 b
[friend]
 

Definition at line 212 of file Vector2.h.

Vector2 operator+ const Vector2 a,
const Vector2 b
[friend]
 

Definition at line 177 of file Vector2.h.

Vector2 operator- const Vector2 a,
const Vector2 b
[friend]
 

Definition at line 182 of file Vector2.h.

Vector2 operator- const Vector2 unary  )  [friend]
 

Definition at line 172 of file Vector2.h.

Vector2 operator/ const Vector2 a,
const float  s
[friend]
 

Definition at line 167 of file Vector2.h.

int operator== const Vector2 a,
const Vector2 b
[friend]
 

Definition at line 108 of file Vector2.h.

float operator^ const Vector2 a,
const Vector2 b
[friend]
 

Definition at line 207 of file Vector2.h.

float operator| const Vector2 a,
const Vector2 b
[friend]
 

Definition at line 202 of file Vector2.h.

void Swap Vector2 a,
Vector2 b
[friend]
 

Definition at line 222 of file Vector2.h.

Vector2 ToVector2 const Vector p  )  [friend]
 

Definition at line 99 of file Vector2.h.


Member Data Documentation

float Vector2::x
 

Definition at line 14 of file Vector2.h.

Referenced by Absolute(), Negate(), Norm(), operator *(), operator *=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator=(), operator==(), operator[](), operator^(), operator|(), Orthogonal(), Reciprocal(), Set(), Matrix33::SetTranslate(), Vector::Vector(), and Vector2().

float Vector2::y
 

Definition at line 14 of file Vector2.h.

Referenced by Absolute(), Negate(), Norm(), operator *(), operator *=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator=(), operator==(), operator^(), operator|(), Orthogonal(), Reciprocal(), Set(), Matrix33::SetTranslate(), Vector::Vector(), and Vector2().


The documentation for this class was generated from the following file:
This A:M SDK v12.0 documentation is maintained by Hash Inc. Please address any comments concerning this documentation to AMReports. If you have any information, knowledge, or documentation to share with the A:M developer community, please post them on the Hash SDK forum.

Generated on Thu Oct 27 11:47:04 2005 with doxygen 1.4.5 written by Dimitri van Heesch, © 1997-2001