Point Class Reference

#include <geometry.h>

List of all members.

Public Member Functions

 Point ()
 Point (float xx, float yy, float zz)
 Point (const Point &p)
Pointoperator= (const Point &p)
Point operator+ (const Vector &v) const
Pointoperator+= (const Vector &v)
Vector operator- (const Point &p) const
Point operator- (const Vector &v) const
Pointoperator-= (const Vector &v)
Pointoperator+= (const Point &p)
Point operator+ (const Point &p) const
Point operator* (float f) const
Pointoperator*= (float f)
Point operator/ (float f) const
Pointoperator/= (float f)
float operator[] (int i) const
float & operator[] (int i)
bool HasNaNs () const

Public Attributes

float x
float y
float z

Detailed Description

Definition at line 120 of file geometry.h.


Constructor & Destructor Documentation

Point::Point (  )  [inline]

Definition at line 123 of file geometry.h.

References x, y, and z.

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

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

Definition at line 124 of file geometry.h.

References Assert, and HasNaNs().

Point::Point ( const Point p  )  [inline]

Definition at line 129 of file geometry.h.

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


Member Function Documentation

bool Point::HasNaNs (  )  const [inline]

Definition at line 199 of file geometry.h.

References x, y, and z.

Referenced by RayDifferential::HasNaNs(), Ray::HasNaNs(), operator*(), operator+(), operator+=(), operator-(), operator=(), and Point().

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

Definition at line 174 of file geometry.h.

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

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

Definition at line 177 of file geometry.h.

References x, y, and z.

Point Point::operator+ ( const Point p  )  const [inline]

Definition at line 170 of file geometry.h.

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

Point Point::operator+ ( const Vector v  )  const [inline]

Definition at line 140 of file geometry.h.

References Assert, Vector::HasNaNs(), Point(), Vector::x, x, Vector::y, y, Vector::z, and z.

Point& Point::operator+= ( const Point p  )  [inline]

Definition at line 165 of file geometry.h.

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

Point& Point::operator+= ( const Vector v  )  [inline]

Definition at line 145 of file geometry.h.

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

Point Point::operator- ( const Vector v  )  const [inline]

Definition at line 155 of file geometry.h.

References Assert, Vector::HasNaNs(), Point(), Vector::x, x, Vector::y, y, Vector::z, and z.

Vector Point::operator- ( const Point p  )  const [inline]

Definition at line 150 of file geometry.h.

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

Point& Point::operator-= ( const Vector v  )  [inline]

Definition at line 160 of file geometry.h.

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

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

Definition at line 181 of file geometry.h.

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

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

Definition at line 185 of file geometry.h.

References x, y, and z.

Point& Point::operator= ( const Point p  )  [inline]

Definition at line 134 of file geometry.h.

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

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

Definition at line 195 of file geometry.h.

References Assert, and x.

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

Definition at line 190 of file geometry.h.

References Assert, and x.


Member Data Documentation

float Point::x
float Point::y
float Point::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