k3d::normal3 Class Reference

Encapsulates a 3D surface normal. More...

#include <normal3.h>

List of all members.

Public Member Functions

 normal3 ()
 normal3 (const double x, const double y, const double z)
normal3operator+= (const normal3 &v)
normal3operator-= (const normal3 &v)
normal3operator*= (const double d)
normal3operator/= (const double d)
double & operator[] (const unsigned int i)
double operator[] (const unsigned int i) const
double length () const
 Returns the normal length.
double length2 () const
 Returns the squared normal length.

Public Attributes

double n [3]
 Stores the normal values.


std::ostream & operator<< (std::ostream &Stream, const normal3 &RHS)
std::istream & operator>> (std::istream &Stream, normal3 &RHS)

Detailed Description

Encapsulates a 3D surface normal.

Constructor & Destructor Documentation

k3d::normal3::normal3 (  )  [inline]

References n.

k3d::normal3::normal3 ( const double  x,
const double  y,
const double  z 
) [inline]

References n.

Member Function Documentation

double k3d::normal3::length (  )  const [inline]
double k3d::normal3::length2 (  )  const [inline]
normal3& k3d::normal3::operator*= ( const double  d  )  [inline]

References n.

normal3& k3d::normal3::operator+= ( const normal3 v  )  [inline]

References n.

normal3& k3d::normal3::operator-= ( const normal3 v  )  [inline]

References n.

normal3& k3d::normal3::operator/= ( const double  d  )  [inline]

References n, and return_val_if_fail.

double k3d::normal3::operator[] ( const unsigned int  i  )  const [inline]

References n.

double& k3d::normal3::operator[] ( const unsigned int  i  )  [inline]

References n.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  Stream,
const normal3 RHS 
) [friend]
std::istream& operator>> ( std::istream &  Stream,
normal3 RHS 
) [friend]

Member Data Documentation

double k3d::normal3::n[3]

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

Generated on Mon Mar 21 07:42:08 2011 for K-3D by doxygen 1.6.3