Normal Class Reference

#include <geometry.h>

List of all members.

Public Member Functions

 Normal ()
 Normal (float xx, float yy, float zz)
Normal operator- () const
Normal operator+ (const Normal &n) const
Normaloperator+= (const Normal &n)
Normal operator- (const Normal &n) const
Normaloperator-= (const Normal &n)
bool HasNaNs () const
Normal operator* (float f) const
Normaloperator*= (float f)
Normal operator/ (float f) const
Normaloperator/= (float f)
float LengthSquared () const
float Length () const
 Normal (const Normal &n)
Normaloperator= (const Normal &n)
 Normal (const Vector &v)
float operator[] (int i) const
float & operator[] (int i)

Public Attributes

float x
float y
float z

Detailed Description

Definition at line 208 of file geometry.h.


Constructor & Destructor Documentation

Normal::Normal (  )  [inline]

Definition at line 211 of file geometry.h.

References x, y, and z.

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

Normal::Normal ( float  xx,
float  yy,
float  zz 
) [inline]

Definition at line 212 of file geometry.h.

References Assert, and HasNaNs().

Normal::Normal ( const Normal n  )  [inline]

Definition at line 266 of file geometry.h.

References Assert, HasNaNs(), x, y, and z.

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

Definition at line 277 of file geometry.h.

References Assert, and Vector::HasNaNs().


Member Function Documentation

bool Normal::HasNaNs (  )  const [inline]

Definition at line 239 of file geometry.h.

References x, y, and z.

Referenced by AbsDot(), Cross(), Dot(), Normal(), operator+(), operator+=(), operator-(), operator-=(), operator=(), and Vector::Vector().

float Normal::Length (  )  const [inline]

Definition at line 263 of file geometry.h.

References LengthSquared().

Referenced by Normalize().

float Normal::LengthSquared (  )  const [inline]

Definition at line 262 of file geometry.h.

References x, y, and z.

Referenced by Length().

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

Definition at line 242 of file geometry.h.

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

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

Definition at line 246 of file geometry.h.

References x, y, and z.

Normal Normal::operator+ ( const Normal n  )  const [inline]

Definition at line 219 of file geometry.h.

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

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

Definition at line 224 of file geometry.h.

References Assert, HasNaNs(), x, y, and z.

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

Definition at line 229 of file geometry.h.

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

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

Definition at line 216 of file geometry.h.

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

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

Definition at line 234 of file geometry.h.

References Assert, HasNaNs(), x, y, and z.

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

Definition at line 250 of file geometry.h.

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

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

Definition at line 256 of file geometry.h.

References Assert, x, y, and z.

Normal& Normal::operator= ( const Normal n  )  [inline]

Definition at line 271 of file geometry.h.

References Assert, HasNaNs(), x, y, and z.

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

Definition at line 286 of file geometry.h.

References Assert, and x.

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

Definition at line 281 of file geometry.h.

References Assert, and x.


Member Data Documentation

float Normal::x
float Normal::y
float Normal::z

The documentation for this class was generated from the following file:
Generated on Sat Aug 28 20:00:14 2010 for pbrt by  doxygen 1.6.3