Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

gbmath::V2 Class Reference

2D vector class. More...

#include <v2.h>

List of all members.

Public Methods

Constructors
 V2 (float x=0.f, float y=0.f)
 .

 V2 (const V2 &v)
 .

Initializers
void Set (float x, float y)
 .

void Set (const V2 &v)
 .

Overloaded operators
V2 operator+ (const V2 &v) const
 .

V2 operator- (const V2 &v) const
 .

V2 operator * (float d) const
 .

V2 operator/ (float d) const
 .

void operator+= (const V2 &v)
 .

void operator-= (const V2 &v)
 .

void operator *= (float d)
 .

void operator/= (float d)
 .

Operations
float PerpDot (const V2 &v) const
 .

float Dot (const V2 &v) const
 .

float Mag () const
 .

float MagSquared () const
 .

V2 GetNorm () const
 .

V2 & Normalize ()
 .

bool Equals (const V2 &v, float eps=constants::Eps3) const
 .


Static Public Attributes

V2 Axes [2] = { V2 (1.0f, 0.f) , V2 (0.f, 1.f) }
 Cardinal Axes.

V2 O
 Zero vector.

V2 Inf
 Inifinite vector.


Detailed Description

2D vector class.

Union members: float x, y; float xy [2];


The documentation for this class was generated from the following files:
Generated on Mon Sep 2 14:52:33 2002 for GunBuster Engine by doxygen1.2.17