le3d - LightEngine 3D
A straightforward C++ 3D software engine for real-time graphics
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
LeVertex Struct Reference

Represent a vertex in 3D space. More...

#include <geometry_scalar.h>

Public Member Functions

 LeVertex ()
 
 LeVertex (float px, float py, float pz)
 
LeVertex operator+ (LeVertex v) const
 
LeVertex operator+= (LeVertex v)
 
LeVertex operator- (LeVertex v) const
 
LeVertex operator- () const
 
LeVertex operator-= (LeVertex v)
 
LeVertex operator* (LeVertex v) const
 
LeVertex operator/ (LeVertex v) const
 
LeVertex operator* (float v) const
 
LeVertex operator/ (float v) const
 
LeVertex operator*= (LeVertex v)
 
LeVertex operator/= (LeVertex v)
 
LeVertex operator*= (float v)
 
LeVertex operator/= (float v)
 
bool operator== (LeVertex v)
 
float dot (LeVertex v) const
 
LeVertex cross (LeVertex v) const
 
LeVertex sign () const
 
LeVertex round () const
 
LeVertex floor () const
 
LeVertex normalize ()
 
float norm () const
 

Static Public Member Functions

static LeVertex spherical (float azi, float inc, float dist)
 

Public Attributes

float x
 
float y
 
float z
 
float w
 

Detailed Description

Represent a vertex in 3D space.

Constructor & Destructor Documentation

LeVertex::LeVertex ( )
inline
LeVertex::LeVertex ( float  px,
float  py,
float  pz 
)
inline

Member Function Documentation

LeVertex LeVertex::cross ( LeVertex  v) const
inline
float LeVertex::dot ( LeVertex  v) const
inline
LeVertex LeVertex::floor ( ) const
inline
float LeVertex::norm ( ) const
inline
LeVertex LeVertex::normalize ( )
inline
LeVertex LeVertex::operator* ( LeVertex  v) const
inline
LeVertex LeVertex::operator* ( float  v) const
inline
LeVertex LeVertex::operator*= ( LeVertex  v)
inline
LeVertex LeVertex::operator*= ( float  v)
inline
LeVertex LeVertex::operator+ ( LeVertex  v) const
inline
LeVertex LeVertex::operator+= ( LeVertex  v)
inline
LeVertex LeVertex::operator- ( LeVertex  v) const
inline
LeVertex LeVertex::operator- ( ) const
inline
LeVertex LeVertex::operator-= ( LeVertex  v)
inline
LeVertex LeVertex::operator/ ( LeVertex  v) const
inline
LeVertex LeVertex::operator/ ( float  v) const
inline
LeVertex LeVertex::operator/= ( LeVertex  v)
inline
LeVertex LeVertex::operator/= ( float  v)
inline
bool LeVertex::operator== ( LeVertex  v)
inline
LeVertex LeVertex::round ( ) const
inline
LeVertex LeVertex::sign ( ) const
inline
static LeVertex LeVertex::spherical ( float  azi,
float  inc,
float  dist 
)
inlinestatic

Member Data Documentation

float LeVertex::w
float LeVertex::x
float LeVertex::y
float LeVertex::z

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