public class RMPoint
extends java.awt.geom.Point2D.Double
Constructor and Description |
---|
RMPoint()
Creates a point initialized to 0,0.
|
RMPoint(double x1,
double y1)
Creates a point initialized to the given x and y.
|
RMPoint(java.awt.geom.Point2D aPoint)
Creates a point initialized to the given AWT Point.
|
Modifier and Type | Method and Description |
---|---|
RMPoint |
add(RMPoint aPoint)
Adds the given point to this point.
|
boolean |
equals(RMPoint aPoint)
Standard equals implementation.
|
static RMPoint |
getPoint(java.awt.geom.Point2D aPoint)
Returns an RMPoint version of the given Point2D (just the Point2D if it's already an RMPoint).
|
boolean |
inRect(RMRect aRect)
Returns whether the receiver is in the given rect.
|
void |
multiply(double sx,
double sy)
Multiplies this point by the given sx and sy.
|
RMPoint |
offset(double dx,
double dy)
Offsets the receiver by the given x and y.
|
RMPoint |
subtract(RMPoint aPoint)
Subtracts the given point from this point.
|
java.lang.String |
toString()
Returns a string representation of the receiver in the form "[x y]".
|
RMPoint |
transform(RMTransform aTransform)
Transforms the point by the given transform.
|
public static final RMPoint zeroPoint
public RMPoint()
public RMPoint(double x1, double y1)
public RMPoint(java.awt.geom.Point2D aPoint)
public RMPoint offset(double dx, double dy)
public void multiply(double sx, double sy)
public boolean inRect(RMRect aRect)
public RMPoint transform(RMTransform aTransform)
public boolean equals(RMPoint aPoint)
public java.lang.String toString()
toString
in class java.awt.geom.Point2D.Double
public static RMPoint getPoint(java.awt.geom.Point2D aPoint)