lux::Normal Class Reference

#include <normal.h>

List of all members.

Public Member Functions

 Normal (float _x=0, float _y=0, float _z=0)
Normal operator- () const
Normal operator+ (const Normal &v) const
Normaloperator+= (const Normal &v)
Normal operator- (const Normal &v) const
Normaloperator-= (const Normal &v)
Normal operator* (float f) const
Normaloperator*= (float f)
Normal operator/ (float f) const
Normaloperator/= (float f)
float LengthSquared () const
float Length () const
 Normal (const Vector &v)
float operator[] (int i) const
float & operator[] (int i)

Public Attributes

float x
float y
float z

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)

Friends

class boost::serialization::access


Detailed Description

Definition at line 33 of file normal.h.


Constructor & Destructor Documentation

lux::Normal::Normal ( float  _x = 0,
float  _y = 0,
float  _z = 0 
) [inline]

Definition at line 37 of file normal.h.

Referenced by operator*(), operator+(), operator-(), and operator/().

lux::Normal::Normal ( const Vector v  )  [inline, explicit]

Definition at line 79 of file normal.h.


Member Function Documentation

float lux::Normal::Length (  )  const [inline]

Definition at line 77 of file normal.h.

References LengthSquared().

Referenced by lux::Normalize().

float lux::Normal::LengthSquared (  )  const [inline]

Definition at line 76 of file normal.h.

References x, y, and z.

Referenced by Length().

Normal lux::Normal::operator* ( float  f  )  const [inline]

Definition at line 58 of file normal.h.

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

Normal& lux::Normal::operator*= ( float  f  )  [inline]

Definition at line 62 of file normal.h.

References x, y, and z.

Normal lux::Normal::operator+ ( const Normal v  )  const [inline]

Definition at line 42 of file normal.h.

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

Normal& lux::Normal::operator+= ( const Normal v  )  [inline]

Definition at line 46 of file normal.h.

References x, y, and z.

Normal lux::Normal::operator- ( const Normal v  )  const [inline]

Definition at line 50 of file normal.h.

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

Normal lux::Normal::operator- (  )  const [inline]

Definition at line 39 of file normal.h.

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

Normal& lux::Normal::operator-= ( const Normal v  )  [inline]

Definition at line 54 of file normal.h.

References x, y, and z.

Normal lux::Normal::operator/ ( float  f  )  const [inline]

Definition at line 66 of file normal.h.

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

Normal& lux::Normal::operator/= ( float  f  )  [inline]

Definition at line 71 of file normal.h.

References x, y, and z.

float& lux::Normal::operator[] ( int  i  )  [inline]

Definition at line 82 of file normal.h.

References x.

float lux::Normal::operator[] ( int  i  )  const [inline]

Definition at line 81 of file normal.h.

References x.

template<class Archive >
void lux::Normal::serialize ( Archive &  ar,
const unsigned int  version 
) [inline, private]

Definition at line 88 of file normal.h.

References x, y, and z.


Friends And Related Function Documentation

friend class boost::serialization::access [friend]

Definition at line 34 of file normal.h.


Member Data Documentation


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

Generated on Fri Jul 24 11:52:03 2009 for lux by  doxygen 1.5.9