Physics4K  2013-06-04
Physics4K is the next great evolution in 2D physics engines. built upon the C++ Game Framework, it is going to take the next generation gaming world by storm.
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
PK::Vector2f Class Reference

#include <Vector2f.h>

Public Member Functions

 Vector2f ()
 
 Vector2f (const Vector2f &copy)
 
 Vector2f (float x, float y)
 
 ~Vector2f ()
 
float Length ()
 
void Normalize ()
 
Vector2foperator= (const Vector2f &param)
 
Vector2foperator+= (const Vector2f &param)
 
Vector2foperator-= (const Vector2f &param)
 
Vector2foperator*= (const float &param)
 
Vector2foperator/= (const float &param)
 
const Vector2f operator+ (const Vector2f &param) const
 
const Vector2f operator- (const Vector2f &param) const
 
const Vector2f operator* (const float &param) const
 
const Vector2f operator/ (const float &param) const
 

Public Attributes

float X
 
float Y
 

Constructor & Destructor Documentation

Vector2f::Vector2f ( )

Constructor for the Vector2f

Vector2f::Vector2f ( const Vector2f copy)

Copy Constructor for the Vector2f

copy Vector to copy

Vector2f::Vector2f ( float  x,
float  y 
)

Constructor for the Vector2f

Position in the X axis Position in the Y axis

Vector2f::~Vector2f ( )

Destructor for the Vector2f

Member Function Documentation

float Vector2f::Length ( )

Calculate the length for the vectior

void Vector2f::Normalize ( )

Normalize this vector

const Vector2f Vector2f::operator* ( const float &  param) const
Parameters
Scalarto multiply
Vector2f & Vector2f::operator*= ( const float &  param)

*= operator for the Vector2f

Parameters
Scalarto multiply
const Vector2f Vector2f::operator+ ( const Vector2f param) const
Parameters
Vector2fto add
Vector2f & Vector2f::operator+= ( const Vector2f param)

+= operator for the Vector2f

Parameters
Vector2fto add
const Vector2f Vector2f::operator- ( const Vector2f param) const
Parameters
Vector2fto subtract
Vector2f & Vector2f::operator-= ( const Vector2f param)

-= operator for the Vector2f

Parameters
Vector2fto subtract
const Vector2f Vector2f::operator/ ( const float &  param) const

/ operator for the Vector2f

Parameters
Scalarto divide
Vector2f & Vector2f::operator/= ( const float &  param)

/= operator for the Vector2f

Parameters
Scalarto divide
Vector2f & Vector2f::operator= ( const Vector2f param)

= operator for the Vector2f

Parameters
Vector2fto copy

Member Data Documentation

float PK::Vector2f::X
float PK::Vector2f::Y

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