org.shapelogic.polygon
Interface IPoint2D
- All Superinterfaces:
- java.lang.Cloneable, java.lang.Comparable<IPoint2D>, GeometricShape2D, PointReplacable<IPoint2D>
- All Known Implementing Classes:
- CPointDouble, CPointInt
public interface IPoint2D
- extends java.lang.Comparable<IPoint2D>, java.lang.Cloneable, GeometricShape2D, PointReplacable<IPoint2D>
- Author:
- Sami Badawi
Methods inherited from interface java.lang.Comparable |
compareTo |
setLocation
void setLocation(double x,
double y)
minus
IPoint2D minus(IPoint2D that)
add
IPoint2D add(IPoint2D that)
multiply
IPoint2D multiply(double multiplier)
isNull
boolean isNull()
toDoubleArray
double[] toDoubleArray()
getX
double getX()
getY
double getY()
min
IPoint2D min(IPoint2D that)
max
IPoint2D max(IPoint2D that)
distance
double distance(IPoint2D that)
distanceFromOrigin
double distanceFromOrigin()
round
IPoint2D round()
copy
IPoint2D copy()
angle
double angle()
isOnAxis
boolean isOnAxis()
isOnDiagonal
boolean isOnDiagonal()
turn90
IPoint2D turn90()
Copyright © 2009. All Rights Reserved.