cs sdk v 1.14 released

Home  |  Product  |  Documents  |  Tutorials  |  FAQ |   Download  |   Forum |   Contacts  |   Link  


  Cross Suit

 Cross Suit SDK

 Documents
      classes
 Starting...
           Tutorials

 LUA tutorials

   Support

  Forum
  q&a

 Product parts

 Virtual File system

 Virtual Render
 Virtual Machine
   

  Demo Games

   

 3D Engine

  gvSystem(dx9)

 Link

 

 

VECTOR2 Class Reference

#include <gv_types.h>

Collaboration diagram for VECTOR2:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 VECTOR2 ()
 VECTOR2 (const float x, const float y)
 VECTOR2 (const VECTOR2 &v)
VECTOR2 operator- () const
VECTOR2 operator+ (const VECTOR2 &v) const
VECTOR2 operator- (const VECTOR2 &v) const
VECTOR2 operator * (const VECTOR2 &v) const
VECTOR2 operator/ (const VECTOR2 &v) const
VECTOR2 operator * (const float a) const
VECTOR2 operator/ (const float a) const
VECTOR2 operator+ (const float a) const
VECTOR2 operator- (const float a) const
void operator+= (const VECTOR2 &v)
void operator-= (const VECTOR2 &v)
void operator *= (const VECTOR2 &v)
void operator/= (const VECTOR2 &v)
bool operator== (const VECTOR2 &v) const
bool operator!= (const VECTOR2 &v) const
void operator+= (const float a)
void operator-= (const float a)
void operator *= (const float a)
void operator/= (const float a)
bool operator== (const float a) const
bool operator!= (const float a) const
VECTOR2 ScalarAddition (const float a) const
VECTOR2 ScalarSubtraction (const float a) const
VECTOR2 ScalarMultiplication (const float a) const
VECTOR2 ScalarDivision (const float a) const
bool IsEqualTo (const float a) const
bool IsNotEqualTo (const float a) const
float DistanceTo (const VECTOR2 &v) const
float AngleTo (const VECTOR2 &v) const
float Magnitude (void) const
void Normalize (void)
float DotProduct (const VECTOR2 &v)
float CrossProduct (const VECTOR2 &v)
float Length (void)

Public Attributes

float x
 the x component
float y
 the y component

Detailed Description

Definition at line 365 of file gv_types.h.


Constructor & Destructor Documentation

VECTOR2::VECTOR2 (  )  [inline]

Definition at line 368 of file gv_types.h.

VECTOR2::VECTOR2 ( const float  x,
const float  y 
) [inline]

Definition at line 369 of file gv_types.h.

VECTOR2::VECTOR2 ( const VECTOR2 v  )  [inline]

Definition at line 370 of file gv_types.h.


Member Function Documentation

VECTOR2 VECTOR2::operator- (  )  const

VECTOR2 VECTOR2::operator+ ( const VECTOR2 v  )  const

VECTOR2 VECTOR2::operator- ( const VECTOR2 v  )  const

VECTOR2 VECTOR2::operator * ( const VECTOR2 v  )  const

VECTOR2 VECTOR2::operator/ ( const VECTOR2 v  )  const

VECTOR2 VECTOR2::operator * ( const float  a  )  const

VECTOR2 VECTOR2::operator/ ( const float  a  )  const

VECTOR2 VECTOR2::operator+ ( const float  a  )  const

VECTOR2 VECTOR2::operator- ( const float  a  )  const

void VECTOR2::operator+= ( const VECTOR2 v  ) 

void VECTOR2::operator-= ( const VECTOR2 v  ) 

void VECTOR2::operator *= ( const VECTOR2 v  ) 

void VECTOR2::operator/= ( const VECTOR2 v  ) 

bool VECTOR2::operator== ( const VECTOR2 v  )  const

bool VECTOR2::operator!= ( const VECTOR2 v  )  const

void VECTOR2::operator+= ( const float  a  ) 

void VECTOR2::operator-= ( const float  a  ) 

void VECTOR2::operator *= ( const float  a  ) 

void VECTOR2::operator/= ( const float  a  ) 

bool VECTOR2::operator== ( const float  a  )  const

bool VECTOR2::operator!= ( const float  a  )  const

VECTOR2 VECTOR2::ScalarAddition ( const float  a  )  const

VECTOR2 VECTOR2::ScalarSubtraction ( const float  a  )  const

VECTOR2 VECTOR2::ScalarMultiplication ( const float  a  )  const

VECTOR2 VECTOR2::ScalarDivision ( const float  a  )  const

bool VECTOR2::IsEqualTo ( const float  a  )  const

bool VECTOR2::IsNotEqualTo ( const float  a  )  const

float VECTOR2::DistanceTo ( const VECTOR2 v  )  const

float VECTOR2::AngleTo ( const VECTOR2 v  )  const

float VECTOR2::Magnitude ( void   )  const

void VECTOR2::Normalize ( void   ) 

float VECTOR2::DotProduct ( const VECTOR2 v  ) 

float VECTOR2::CrossProduct ( const VECTOR2 v  ) 

float VECTOR2::Length ( void   ) 


Member Data Documentation

float VECTOR2::x

the x component

Definition at line 413 of file gv_types.h.

float VECTOR2::y

the y component

Definition at line 414 of file gv_types.h.


The documentation for this class was generated from the following file:

Copyright(C) gvSystem & GamePlus All Rights Reserved.