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

Method Summary
 IPoint2D add(IPoint2D that)
           
 double angle()
           
 IPoint2D copy()
           
 double distance(IPoint2D that)
           
 double distanceFromOrigin()
           
 double getX()
           
 double getY()
           
 boolean isNull()
           
 boolean isOnAxis()
           
 boolean isOnDiagonal()
           
 IPoint2D max(IPoint2D that)
           
 IPoint2D min(IPoint2D that)
           
 IPoint2D minus(IPoint2D that)
           
 IPoint2D multiply(double multiplier)
           
 IPoint2D round()
           
 void setLocation(double x, double y)
           
 double[] toDoubleArray()
           
 IPoint2D turn90()
           
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface org.shapelogic.polygon.GeometricShape2D
getCenter, getDiameter
 
Methods inherited from interface org.shapelogic.polygon.PointReplacable
replacePointsInMap
 

Method Detail

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.