HOG2
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Graphics::point Struct Reference

#include <Graphics.h>

Public Member Functions

 point (float x=0, float y=0, float z=0)
 
bool operator== (const point &p) const
 
bool operator!= (const point &p) const
 
pointoperator+= (const float v)
 
pointoperator-= (const float v)
 
pointoperator*= (const float v)
 
pointoperator/= (const float v)
 
pointoperator+= (const point &i)
 
pointoperator-= (const point &i)
 
point operator* (float i) const
 
point operator+ (const point &i) const
 
point operator- (const point &i) const
 
float length () const
 
float squaredLength () const
 
void normalise ()
 
point operator* (const point &val) const
 

Static Public Member Functions

static float Dot (point a, point b)
 

Public Attributes

float x
 
float y
 
float z
 

Detailed Description

Definition at line 32 of file Graphics.h.

Constructor & Destructor Documentation

◆ point()

Graphics::point::point ( float  x = 0,
float  y = 0,
float  z = 0 
)
inline

Definition at line 34 of file Graphics.h.

Member Function Documentation

◆ Dot()

static float Graphics::point::Dot ( point  a,
point  b 
)
inlinestatic

Definition at line 80 of file Graphics.h.

References x, y, and z.

◆ length()

float Graphics::point::length ( ) const
inline

Definition at line 65 of file Graphics.h.

References x, y, and z.

Referenced by normalise().

◆ normalise()

void Graphics::point::normalise ( )
inline

Definition at line 69 of file Graphics.h.

References length(), x, y, and z.

Referenced by Racetrack::GetCarCoordinates(), HandleCommand(), and operator*().

◆ operator!=()

bool Graphics::point::operator!= ( const point p) const
inline

Definition at line 40 of file Graphics.h.

◆ operator*() [1/2]

point Graphics::point::operator* ( const point val) const
inline

Definition at line 83 of file Graphics.h.

References normalise(), x, y, and z.

◆ operator*() [2/2]

point Graphics::point::operator* ( float  i) const
inline

Definition at line 57 of file Graphics.h.

◆ operator*=()

point& Graphics::point::operator*= ( const float  v)
inline

Definition at line 47 of file Graphics.h.

References x, y, and z.

◆ operator+()

point Graphics::point::operator+ ( const point i) const
inline

Definition at line 59 of file Graphics.h.

◆ operator+=() [1/2]

point& Graphics::point::operator+= ( const float  v)
inline

Definition at line 43 of file Graphics.h.

References x, y, and z.

◆ operator+=() [2/2]

point& Graphics::point::operator+= ( const point i)
inline

Definition at line 52 of file Graphics.h.

References x, y, and z.

◆ operator-()

point Graphics::point::operator- ( const point i) const
inline

Definition at line 61 of file Graphics.h.

◆ operator-=() [1/2]

point& Graphics::point::operator-= ( const float  v)
inline

Definition at line 45 of file Graphics.h.

References x, y, and z.

◆ operator-=() [2/2]

point& Graphics::point::operator-= ( const point i)
inline

Definition at line 54 of file Graphics.h.

References x, y, and z.

◆ operator/=()

point& Graphics::point::operator/= ( const float  v)
inline

Definition at line 49 of file Graphics.h.

References x, y, and z.

◆ operator==()

bool Graphics::point::operator== ( const point p) const
inline

Definition at line 38 of file Graphics.h.

References fequal(), x, y, and z.

◆ squaredLength()

float Graphics::point::squaredLength ( ) const
inline

Definition at line 67 of file Graphics.h.

References x, y, and z.

Member Data Documentation

◆ x

float Graphics::point::x

◆ y

float Graphics::point::y

◆ z

float Graphics::point::z

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