Point Class Reference

#include <geometry.h>

List of all members.

Public Member Functions

 Point (float _x=0, float _y=0, float _z=0)
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)

Public Attributes

float x
float y
float z


Detailed Description

Definition at line 81 of file geometry.h.


Constructor & Destructor Documentation

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

Definition at line 84 of file geometry.h.


Member Function Documentation

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

Definition at line 87 of file geometry.h.

References Vector::x, Vector::y, and Vector::z.

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

Definition at line 91 of file geometry.h.

References Vector::x, Vector::y, and Vector::z.

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

Definition at line 95 of file geometry.h.

References x, y, and z.

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

Definition at line 99 of file geometry.h.

References Vector::x, Vector::y, and Vector::z.

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

Definition at line 103 of file geometry.h.

References Vector::x, Vector::y, and Vector::z.

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

Definition at line 107 of file geometry.h.

References x, y, and z.

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

Definition at line 111 of file geometry.h.

References x, y, and z.

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

Definition at line 114 of file geometry.h.

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

Definition at line 117 of file geometry.h.

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

Definition at line 121 of file geometry.h.

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

Definition at line 125 of file geometry.h.

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

Definition at line 130 of file geometry.h.

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

Definition at line 131 of file geometry.h.


Member Data Documentation

float Point::x

Definition at line 133 of file geometry.h.

Referenced by Octree< NodeData, LookupProc >::addPrivate(), Hyperboloid::Area(), BBox::BBox(), DifferentialGeometry::ComputeDifferentials(), CreateLight(), VolumeGrid::Density(), Checkerboard3D< T >::Evaluate(), PerspectiveCamera::GenerateRay(), OrthoCamera::GenerateRay(), Hyperboloid::Hyperboloid(), BBox::Inside(), Sphere::Intersect(), Paraboloid::Intersect(), Hyperboloid::Intersect(), Disk::Intersect(), Cylinder::Intersect(), Cone::Intersect(), Sphere::IntersectP(), Paraboloid::IntersectP(), Hyperboloid::IntersectP(), Disk::IntersectP(), Cylinder::IntersectP(), Cone::IntersectP(), LookAt(), Octree< NodeData, LookupProc >::lookupPrivate(), Noise(), Transform::operator()(), operator+(), operator+=(), operator-(), operator<<(), BBox::Overlaps(), ProjectionLight::Projection(), NURBS::Refine(), Sphere::Sample(), Disk::Sample(), Cylinder::Sample(), ParamSet::ToString(), and Union().

float Point::y

Definition at line 133 of file geometry.h.

Referenced by Octree< NodeData, LookupProc >::addPrivate(), Hyperboloid::Area(), BBox::BBox(), DifferentialGeometry::ComputeDifferentials(), CreateLight(), VolumeGrid::Density(), MarbleTexture::Evaluate(), Checkerboard3D< T >::Evaluate(), PerspectiveCamera::GenerateRay(), OrthoCamera::GenerateRay(), Hyperboloid::Hyperboloid(), BBox::Inside(), Sphere::Intersect(), Paraboloid::Intersect(), Hyperboloid::Intersect(), Disk::Intersect(), Cylinder::Intersect(), Cone::Intersect(), Sphere::IntersectP(), Paraboloid::IntersectP(), Hyperboloid::IntersectP(), Disk::IntersectP(), Cylinder::IntersectP(), Cone::IntersectP(), LookAt(), Octree< NodeData, LookupProc >::lookupPrivate(), Noise(), Transform::operator()(), operator+(), operator+=(), operator-(), operator<<(), BBox::Overlaps(), ProjectionLight::Projection(), NURBS::Refine(), Heightfield::Refine(), Sphere::Sample(), Disk::Sample(), Cylinder::Sample(), ParamSet::ToString(), and Union().

float Point::z

Definition at line 133 of file geometry.h.

Referenced by Octree< NodeData, LookupProc >::addPrivate(), Hyperboloid::Area(), BBox::BBox(), DifferentialGeometry::ComputeDifferentials(), CreateLight(), VolumeGrid::Density(), Checkerboard3D< T >::Evaluate(), PerspectiveCamera::GenerateRay(), Hyperboloid::Hyperboloid(), BBox::Inside(), Sphere::Intersect(), Paraboloid::Intersect(), Hyperboloid::Intersect(), Disk::Intersect(), Cylinder::Intersect(), Cone::Intersect(), Sphere::IntersectP(), Paraboloid::IntersectP(), Hyperboloid::IntersectP(), Disk::IntersectP(), Cylinder::IntersectP(), Cone::IntersectP(), LookAt(), Octree< NodeData, LookupProc >::lookupPrivate(), Noise(), Transform::operator()(), operator+(), operator+=(), operator-(), operator<<(), BBox::Overlaps(), NURBS::Refine(), Heightfield::Refine(), Sphere::Sample(), Disk::Sample(), ParamSet::ToString(), and Union().


The documentation for this class was generated from the following file:
Generated on Wed Sep 26 14:01:26 2007 for pbrt by  doxygen 1.5.1