kaos.robots.util
Class GeographicReasoner

java.lang.Object
  extended by kaos.robots.util.GeographicReasoner

public class GeographicReasoner
extends java.lang.Object


Constructor Summary
GeographicReasoner()
           
 
Method Summary
static boolean doesPathCrossArea(Coordinate startPoint, Coordinate endPoint, Area area)
           
static boolean doesPathCrossArea(Coordinate startPoint, Coordinate endPoint, Coordinate center, double radius)
           
static java.util.Vector getAdjustedPath(Coordinate startPoint, Coordinate endPoint, Area area)
           
static java.util.Vector getCornerPoints(Area area)
           
static double getDistanceBetweenTwoPoints(Coordinate one, Coordinate two)
           
static Coordinate getNearestPointWithinDistance(Coordinate startPoint, Coordinate endPoint, double distance)
           
static boolean isPointWithinArea(Coordinate point, Area area)
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeographicReasoner

public GeographicReasoner()
Method Detail

isPointWithinArea

public static boolean isPointWithinArea(Coordinate point,
                                        Area area)

doesPathCrossArea

public static boolean doesPathCrossArea(Coordinate startPoint,
                                        Coordinate endPoint,
                                        Area area)

getDistanceBetweenTwoPoints

public static double getDistanceBetweenTwoPoints(Coordinate one,
                                                 Coordinate two)

getNearestPointWithinDistance

public static Coordinate getNearestPointWithinDistance(Coordinate startPoint,
                                                       Coordinate endPoint,
                                                       double distance)

doesPathCrossArea

public static boolean doesPathCrossArea(Coordinate startPoint,
                                        Coordinate endPoint,
                                        Coordinate center,
                                        double radius)

getAdjustedPath

public static java.util.Vector getAdjustedPath(Coordinate startPoint,
                                               Coordinate endPoint,
                                               Area area)

getCornerPoints

public static java.util.Vector getCornerPoints(Area area)

main

public static void main(java.lang.String[] args)