facets.util.geom
Class Point
java.lang.Object
facets.util.geom.Point
- All Implemented Interfaces:
- java.io.Serializable
public final class Point
- extends java.lang.Object
- implements java.io.Serializable
Abstract 2D point.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Point
public Point()
Point
public Point(double x,
double y)
Point
public Point(double[] vals)
Point
public Point(Point src)
Point
public Point(Vector src)
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
at
public Vector at()
distance
public double distance(Point from)
eq
public final boolean eq(double a,
double b)
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
intX
public int intX()
intY
public int intY()
jumpFrom
public Vector jumpFrom(Point point)
newPoint
public Point newPoint()
rotate
public void rotate(Point about,
Angle angle)
set
public void set(double x,
double y)
set
public void set(Vector to)
shift
public void shift(Vector shift)
shifted
public Point shifted(Vector shift)
storeX
public double storeX()
storeY
public double storeY()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
x
public double x()
y
public double y()
storeXY
public double[] storeXY()