#include <point.h>
Inheritance diagram for pandore::Point1d:
A point1d represents a 1D location in (x) coordinate space, specified in Long precision. A Point1d is a Pobject, and thus can be saved in and loaded from a file.
Use of Point1d:
Public Member Functions | |
Typobj | Type () const |
std::string | Name () const |
Point1d () | |
Point1d (Long x) | |
Point1d (const Point1d &p) | |
Point1d (const Dimension1d &d) | |
const Point1d & | operator= (const Point1d &pt) |
bool | operator== (const Point1d &pt) const |
bool | operator!= (const Point1d &pt) const |
Point1d & | operator+= (const Point1d &pt) |
Point1d & | operator-= (const Point1d &pt) |
Point1d & | operator *= (const Point1d &pt) |
Point1d & | operator/= (const Point1d &pt) |
Point1d | operator+ (const Point1d &pt) const |
Point1d | operator- (const Point1d &pt) const |
Point1d | operator * (const Point1d &pt) const |
Point1d | operator/ (const Point1d &pt) const |
Pobject * | Clone () const |
Errc | LoadData (FILE *df) |
Errc | SaveData (FILE *df) const |
Public Attributes | |
Long | x |
|
Constructs and initializes a point at the origin (0) of the coordinate space. |
|
Constructs and initializes a point at the specified (x) location in the coordinate space.
|
|
Constructs and initializes a point with the same location as the reference point.
|
|
Constructs and initializes a point with a specified dimension.
|
|
Creates and returns a distinct copy of this object. |
|
Loads data from the given file.
|
|
Returns the type name (for instance "Point1d").
|
|
Returns a new point from the multiplication of the coordinates of the object with the coordinates of the specified point.
|
|
Multiplies the coordinates with the coordinates of the specified point.
|
|
Checks if the coordinates are different from the specified coordinates.
|
|
Returns a new point from the addition of the coordinates of the object with the coordinates of the specified point.
|
|
Adds the coordinates with the coordinates of the specified point.
|
|
Returns a new point from the subtraction of the coordinates of the object with the coordinates of the specified point.
|
|
Subtracts the coordinates with the coordinates of the specified point.
|
|
Returns a new point from the division of the coordinates of the object with the coordinates of the specified point.
|
|
Divides the coordinates with the coordinates of the specified point.
|
|
Sets the coordinates with the coordinates of specified point.
|
|
Checks if the coordinates are equal to the coordinates of the specified point.
|
|
Saves data in the given file.
|
|
Returns the magic number of the object (for instance Po_Point1d).
|
|
The x coordinate -abscissa. |