GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
Point Class Reference

#include <VectorTools.hh>

Public Member Functions

 Point ()
 Point (float xx, float yy, float zz)
 Point (const Vector &v)
float Dist () const
void operator+= (const Vector &v)
void operator-= (const Vector &v)

Static Public Member Functions

static Point Origo ()
static Point Interpolate (const Point &aVec, const Point &aVec2, float aVal)

Public Attributes

float x
float y
float z

Friends

bool operator== (const Point &p1, const Point &p2)
bool operator!= (const Point &p1, const Point &p2)
float Dist (const Point &a, const Point &b)
Point operator+ (const Point &p, const Vector &v)
Point operator- (const Point &p, const Vector &v)
std::ostream & operator<< (std::ostream &o, const Point &p)
std::istream & operator>> (std::istream &i, Point &p)

Constructor & Destructor Documentation

◆ Point() [1/3]

Point::Point ( )
inline
Here is the caller graph for this function:

◆ Point() [2/3]

Point::Point ( float xx,
float yy,
float zz )
inline

◆ Point() [3/3]

Point::Point ( const Vector & v)

Member Function Documentation

◆ Dist()

float Point::Dist ( ) const
Here is the caller graph for this function:

◆ Interpolate()

Point Point::Interpolate ( const Point & aVec,
const Point & aVec2,
float aVal )
inlinestatic
Here is the caller graph for this function:

◆ operator+=()

void Point::operator+= ( const Vector & v)

◆ operator-=()

void Point::operator-= ( const Vector & v)

◆ Origo()

Point Point::Origo ( )
inlinestatic
Here is the caller graph for this function:

◆ Dist

float Dist ( const Point & a,
const Point & b )
friend

◆ operator!=

bool operator!= ( const Point & p1,
const Point & p2 )
friend

◆ operator+

Point operator+ ( const Point & p,
const Vector & v )
friend

◆ operator-

Point operator- ( const Point & p,
const Vector & v )
friend

◆ operator<<

std::ostream & operator<< ( std::ostream & o,
const Point & p )
friend

◆ operator==

bool operator== ( const Point & p1,
const Point & p2 )
friend

◆ operator>>

std::istream & operator>> ( std::istream & i,
Point & p )
friend

Member Data Documentation

◆ x

float Point::x

◆ y

float Point::y

◆ z

float Point::z

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