C++ Game Framework  2013-06-04
CGF is a DirectX 11 game framework, built in C++ and DirectX 11. This is used to contain many to the DirectX functionality and wrap them into a framework to make game development easier.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
CGF::Vector3f Class Reference

#include <Vector3f.h>

Public Member Functions

 Vector3f ()
 
 Vector3f (const Vector3f &copy)
 
 Vector3f (float x, float y, float z)
 
 ~Vector3f ()
 
float Length ()
 
void Normalize ()
 
XMFLOAT3 GetD3DXVector ()
 
Vector3foperator= (const Vector3f &param)
 
Vector3foperator+= (const Vector3f &param)
 
Vector3foperator-= (const Vector3f &param)
 
Vector3foperator*= (const float &param)
 
Vector3foperator/= (const float &param)
 
const Vector3f operator+ (const Vector3f &param) const
 
const Vector3f operator- (const Vector3f &param) const
 
const Vector3f operator* (const float &param) const
 
const Vector3f operator/ (const float &param) const
 

Public Attributes

float X
 
float Y
 
float Z
 

Constructor & Destructor Documentation

Vector3f::Vector3f ( )

Constructor for the Vector3f

Vector3f::Vector3f ( const Vector3f copy)

Copy Constructor for the Vector3f

copy Vector to copy

Vector3f::Vector3f ( float  x,
float  y,
float  z 
)

Constructor for the Vector3f

Position in the X axis Position in the Y axis Position in the Z axis

Vector3f::~Vector3f ( )

Destructor for the Vector3f

Member Function Documentation

XMFLOAT3 Vector3f::GetD3DXVector ( )

Get the vector as a DirectX vector

float Vector3f::Length ( )

Calculate the length for the vectior

void Vector3f::Normalize ( )

Normalize this vector

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

*= operator for the Vector3f

Parameters
Scalarto multiply
const Vector3f Vector3f::operator+ ( const Vector3f param) const
Parameters
Vector3fto add
Vector3f & Vector3f::operator+= ( const Vector3f param)

+= operator for the Vector3f

Parameters
Vector3fto add
const Vector3f Vector3f::operator- ( const Vector3f param) const
Parameters
Vector3fto subtract
Vector3f & Vector3f::operator-= ( const Vector3f param)

-= operator for the Vector3f

Parameters
Vector3fto subtract
const Vector3f Vector3f::operator/ ( const float &  param) const

/ operator for the Vector3f

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

/= operator for the Vector3f

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

= operator for the Vector3f

Parameters
Vector3fto copy

Member Data Documentation

float CGF::Vector3f::X
float CGF::Vector3f::Y
float CGF::Vector3f::Z

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