|
Public Member Functions |
| Point () |
| Point (real x) |
| Point (real x, real y) |
| Point (real x, real y, real z) |
real | dist (Point p) const |
| Return distance to given point p.
|
real | dist (real x, real y=0.0, real z=0.0) const |
| Return distance to given point (x,y,z).
|
Point | midpoint (Point p) const |
| Return midpoint on line to given point p.
|
void | operator= (real x) |
| Assignment from real, giving p = (x,0,0).
|
| operator real () const |
| Cast to real, returning x.
|
Point | operator+= (const Point &p) |
| Add point.
|
Point | operator *= (real a) |
| Multiply by scalar.
|
Point | operator/= (real a) |
| Divide by scalar.
|
Public Attributes |
real | x |
| The three coordinates.
|
real | y |
real | z |
Friends |
LogStream & | operator<< (LogStream &stream, const Point &p) |
| Output.
|