Class representing a two or three dimension point. More...
#include <Point.h>
Public Member Functions | |
double | getX () const |
The following function returns the X coordinate. | |
double | getY () const |
The following function returns the Y coordinate. | |
double | getZ () const |
The following function returns the Z coordinate. | |
void | moveBy (double x, double y) |
Moves the point by specified amount. | |
Point (double x=0.0, double y=0.0, double z=0.0) | |
void | setPoint (double x, double y) |
void | setPoint (double x, double y, double z) |
void | setZ (double) |
Sets the Z component of the Rectangle. |
Private Attributes | |
double | m_x |
double | m_y |
double | m_z |
Class representing a two or three dimension point.
|
inline |
The following function returns the X coordinate.
Definition at line 59 of file Point.h.
References Point::m_x.
Referenced by LinePointRep::addEndPoints(), LinePointRep::cornerCase(), Rect::getX(), Rect::makeInBounds(), and LinePointRep::separation().
|
inline |
The following function returns the Y coordinate.
Definition at line 67 of file Point.h.
References Point::m_y.
Referenced by LinePointRep::addEndPoints(), LinePointRep::cornerCase(), Rect::getY(), Rect::makeInBounds(), and LinePointRep::separation().
|
inline |
The following function returns the Z coordinate.
Definition at line 74 of file Point.h.
References Point::m_z.
Referenced by Rect::getZ(), Rect::isInDepth(), and Rect::makeInBounds().
void moveBy | ( | double | x, |
double | y | ||
) |
Moves the point by specified amount.
Definition at line 30 of file Point.cxx.
References Point::m_x, and Point::m_y.
Referenced by Rect::moveBy().
void setPoint | ( | double | x, |
double | y | ||
) |
Definition at line 19 of file Point.cxx.
References Point::m_x, and Point::m_y.
Referenced by LinePointRep::findEndPoints(), Rect::setRect(), LinePointRep::straddles_x_boundary(), and LinePointRep::straddles_y_boundary().
void setPoint | ( | double | x, |
double | y, | ||
double | z | ||
) |
Definition at line 24 of file Point.cxx.
References Point::m_x, Point::m_y, and Point::m_z.
void setZ | ( | double | z | ) |
Sets the Z component of the Rectangle.
Definition at line 36 of file Point.cxx.
References Point::m_z.
Referenced by Rect::setZ().
|
private |
Definition at line 28 of file Point.h.
Referenced by Point::getX(), Point::moveBy(), and Point::setPoint().
|
private |
Definition at line 29 of file Point.h.
Referenced by Point::getY(), Point::moveBy(), and Point::setPoint().
|
private |
Definition at line 30 of file Point.h.
Referenced by Point::getZ(), Point::setPoint(), and Point::setZ().