public abstract class AbstractPoint2d extends Object implements Point2d
Point2d implementations that retains the underlying
precision.| Constructor and Description |
|---|
AbstractPoint2d() |
| Modifier and Type | Method and Description |
|---|---|
String |
asciiHeader() |
byte[] |
binaryHeader() |
void |
copyFrom(Point2d p)
Copy the values of the given point into this point.
|
boolean |
equals(Object o) |
int |
getDimensions() |
float |
getX() |
float |
getY() |
int |
hashCode() |
Point2d |
minus(Point2d a)
Take point point from another point such that return = this - a
|
void |
readASCII(Scanner in) |
void |
readBinary(DataInput in) |
void |
setX(float x)
Set x coordinate of point
|
void |
setY(float y)
Set y coordinate of point
|
Point2d |
transform(Jama.Matrix transform)
Transform the point by the given matrix
|
void |
translate(float x,
float y)
Translate the position of the point by the given amounts
|
void |
translate(Point2d v)
Translate the position of the point by the given amounts
|
void |
writeASCII(PrintWriter out) |
void |
writeBinary(DataOutput out) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetOrdinate, setOrdinatepublic AbstractPoint2d()
public int getDimensions()
getDimensions in interface Coordinatepublic void readASCII(Scanner in) throws IOException
readASCII in interface ReadableASCIIIOExceptionpublic String asciiHeader()
asciiHeader in interface ReadableASCIIasciiHeader in interface WriteableASCIIpublic void readBinary(DataInput in) throws IOException
readBinary in interface ReadableBinaryIOExceptionpublic byte[] binaryHeader()
binaryHeader in interface ReadableBinarybinaryHeader in interface WriteableBinarypublic void writeASCII(PrintWriter out) throws IOException
writeASCII in interface WriteableASCIIIOExceptionpublic void writeBinary(DataOutput out) throws IOException
writeBinary in interface WriteableBinaryIOExceptionpublic void copyFrom(Point2d p)
Point2dpublic void translate(float x, float y)
Point2dpublic Point2d transform(Jama.Matrix transform)
Point2dpublic Point2d minus(Point2d a)
Point2d