fgms 0.11.8
The
FlightGear MultiPlayer Server
project
Point3D Class Reference

#include <fg_geometry.hxx>

Public Member Functions

 Point3D ()
 
 Point3D (const Point3D &P)
 
 Point3D (const t_Point3D &X, const t_Point3D &Y, const t_Point3D &Z)
 
void CartToPolar ()
 
void clear ()
 
t_Point3D GetX ()
 
t_Point3D GetY ()
 
t_Point3D GetZ ()
 
void invert ()
 
t_Point3D length () const
 
void normalize ()
 
bool operator!= (const Point3D &P)
 
void operator*= (const Point3D &P)
 
void operator*= (const t_Point3D &nV)
 
void operator+= (const Point3D &P)
 
void operator-= (const Point3D &P)
 
void operator/= (const Point3D &P)
 
void operator/= (const t_Point3D &nV)
 
void operator= (const Point3D &P)
 
void operator= (const sgdVec3 &P)
 
bool operator== (const Point3D &P)
 
t_Point3D operator[] (const int Index) const
 
t_Point3Doperator[] (const int Index)
 
void operator^= (const Point3D &P)
 
void PolarToCart ()
 
void Set (const t_Point3D &X, const t_Point3D &Y, const t_Point3D &Z)
 
void SetX (const t_Point3D &nV)
 
void SetY (const t_Point3D &nV)
 
void SetZ (const t_Point3D &nV)
 
t_Point3D sqr ()
 

Private Attributes

t_Point3D m_X
 
t_Point3D m_Y
 
t_Point3D m_Z
 

Friends

Point3D invert (const Point3D &P)
 
t_Point3D length (const Point3D &P)
 Return the length of P. More...
 
Point3D normalize (const Point3D &P)
 Normalize P. More...
 
Point3D operator* (const Point3D &P1, const Point3D &P2)
 
Point3D operator* (const t_Point3D &nV, const Point3D &P1)
 
Point3D operator+ (const Point3D &P1, const Point3D &P2)
 
Point3D operator- (const Point3D &P1, const Point3D &P2)
 
Point3D operator/ (const Point3D &P1, const Point3D &P2)
 
Point3D operator/ (const t_Point3D &nV, const Point3D &P1)
 
Point3D operator^ (const Point3D &P1, const Point3D &P2)
 
t_Point3D sqr (const Point3D &P)
 

Detailed Description

Definition at line 40 of file fg_geometry.hxx.

Constructor & Destructor Documentation

Point3D::Point3D ( )

Definition at line 55 of file fg_geometry.cxx.

Point3D::Point3D ( const Point3D P)

Definition at line 60 of file fg_geometry.cxx.

Point3D::Point3D ( const t_Point3D X,
const t_Point3D Y,
const t_Point3D Z 
)

Definition at line 67 of file fg_geometry.cxx.

Member Function Documentation

void Point3D::CartToPolar ( )

Definition at line 83 of file fg_geometry.cxx.

void Point3D::clear ( )

Definition at line 234 of file fg_geometry.cxx.

Referenced by Point3D().

t_Point3D Point3D::GetX ( )
inline

Definition at line 46 of file fg_geometry.hxx.

t_Point3D Point3D::GetY ( )
inline

Definition at line 47 of file fg_geometry.hxx.

t_Point3D Point3D::GetZ ( )
inline

Definition at line 48 of file fg_geometry.hxx.

void Point3D::invert ( )

Definition at line 227 of file fg_geometry.cxx.

t_Point3D Point3D::length ( ) const

Definition at line 207 of file fg_geometry.cxx.

Referenced by Distance(), normalize(), and normalize().

void Point3D::normalize ( )

Definition at line 212 of file fg_geometry.cxx.

bool Point3D::operator!= ( const Point3D P)

Definition at line 176 of file fg_geometry.cxx.

void Point3D::operator*= ( const Point3D P)

Definition at line 133 of file fg_geometry.cxx.

void Point3D::operator*= ( const t_Point3D nV)

Definition at line 155 of file fg_geometry.cxx.

void Point3D::operator+= ( const Point3D P)

Definition at line 119 of file fg_geometry.cxx.

void Point3D::operator-= ( const Point3D P)

Definition at line 126 of file fg_geometry.cxx.

void Point3D::operator/= ( const Point3D P)

Definition at line 140 of file fg_geometry.cxx.

void Point3D::operator/= ( const t_Point3D nV)

Definition at line 162 of file fg_geometry.cxx.

void Point3D::operator= ( const Point3D P)

Definition at line 105 of file fg_geometry.cxx.

void Point3D::operator= ( const sgdVec3 P)

Definition at line 112 of file fg_geometry.cxx.

bool Point3D::operator== ( const Point3D P)

Definition at line 169 of file fg_geometry.cxx.

t_Point3D Point3D::operator[] ( const int  Index) const

Definition at line 183 of file fg_geometry.cxx.

t_Point3D & Point3D::operator[] ( const int  Index)

Definition at line 195 of file fg_geometry.cxx.

void Point3D::operator^= ( const Point3D P)

Definition at line 147 of file fg_geometry.cxx.

void Point3D::PolarToCart ( )

Definition at line 96 of file fg_geometry.cxx.

void Point3D::Set ( const t_Point3D X,
const t_Point3D Y,
const t_Point3D Z 
)

Definition at line 74 of file fg_geometry.cxx.

Referenced by FG_SERVER::AddClient(), and FG_SERVER::HandlePacket().

void Point3D::SetX ( const t_Point3D nV)
inline

Definition at line 49 of file fg_geometry.hxx.

void Point3D::SetY ( const t_Point3D nV)
inline

Definition at line 50 of file fg_geometry.hxx.

void Point3D::SetZ ( const t_Point3D nV)
inline

Definition at line 51 of file fg_geometry.hxx.

t_Point3D Point3D::sqr ( )

Definition at line 222 of file fg_geometry.cxx.

Friends And Related Function Documentation

Point3D invert ( const Point3D P)
friend

Definition at line 304 of file fg_geometry.cxx.

t_Point3D length ( const Point3D P)
friend

Return the length of P.

Definition at line 348 of file fg_geometry.cxx.

Point3D normalize ( const Point3D P)
friend

Normalize P.

Definition at line 329 of file fg_geometry.cxx.

Point3D operator* ( const Point3D P1,
const Point3D P2 
)
friend

Definition at line 259 of file fg_geometry.cxx.

Point3D operator* ( const t_Point3D nV,
const Point3D P1 
)
friend

Definition at line 286 of file fg_geometry.cxx.

Point3D operator+ ( const Point3D P1,
const Point3D P2 
)
friend

Definition at line 241 of file fg_geometry.cxx.

Point3D operator- ( const Point3D P1,
const Point3D P2 
)
friend

Definition at line 250 of file fg_geometry.cxx.

Point3D operator/ ( const Point3D P1,
const Point3D P2 
)
friend

Definition at line 268 of file fg_geometry.cxx.

Point3D operator/ ( const t_Point3D nV,
const Point3D P1 
)
friend

Definition at line 295 of file fg_geometry.cxx.

Point3D operator^ ( const Point3D P1,
const Point3D P2 
)
friend

Definition at line 277 of file fg_geometry.cxx.

t_Point3D sqr ( const Point3D P)
friend

Definition at line 313 of file fg_geometry.cxx.

Member Data Documentation


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