# 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)

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

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