Class Point (version 0.18)Description: An integer point class
Method Overview
[const] bool !=( Point p )Description: Inequality test operator
[const] Point *( double f )Description: Scaling by some factor Scaling may involve rounding for integer coordinate points.
[const] Point +( Point p )Description: Add one point to another Add point p to self by adding the coordinates
[const] Point -( Point p )Description: Subtract one point from another Subtract point p from self by subtracting the coordinates
[const] bool <( Point p )Description: "less" comparison operator This operator is provided to establish a sorting order
[const] bool ==( Point p )Description: Equality test operator
assign( Point other )Description: Assign the contents of another object to self This method assigns the contents of another object to self. This is a deep copy that does not only copy the reference but the actual content.
destroyDescription: Explicitly destroy the object Explicitly destroy the object on C++ side if it was owned by the Ruby interpreter. Subsequent access to this object will throw an exception. If the object is not owned by Ruby, this method will do nothing.
[const] bool destroyedDescription: Tell, if the object was destroyed This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself.
[const] double distance( Point d )Description: The euclidian distance to another point
[const] Point dupDescription: Creates a copy of self.
[static] Point from_dpoint( DPoint p )Description: Create a double point from an integer point Creates an double point from an integer point p
[static] Point new( int x, int y )
|
d: | The other point to compute the distance to. |
Description: String conversion
Description: Accessor to the x coordinate
Description: Write accessor to the x coordinate
Description: Accessor to the y coordinate
Description: Write accessor to the y coordinate