openlr.map
Class RectangleCorners

java.lang.Object
  extended by openlr.map.RectangleCorners

public class RectangleCorners
extends Object

The Class RectangleCorners.


Constructor Summary
RectangleCorners(GeoCoordinates ll, GeoCoordinates ur)
          Instantiates a new rectangle corners.
RectangleCorners(GeoCoordinates ll, GeoCoordinates ur, GeoCoordinates lr, GeoCoordinates ul)
          Instantiates a new rectangle corners.
 
Method Summary
 boolean equals(Object o)
          
 List<GeoCoordinates> getCornerPoints()
          Gets the corner points (anti-clockwise starting from lower left coordinate).
 GeoCoordinates getLowerLeft()
          Gets the lower left.
 GeoCoordinates getLowerRight()
          Gets the lower right.
 GeoCoordinates getUpperLeft()
          Gets the upper left.
 GeoCoordinates getUpperRight()
          Gets the upper right.
 int hashCode()
          
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RectangleCorners

public RectangleCorners(GeoCoordinates ll,
                        GeoCoordinates ur)
                 throws InvalidMapDataException
Instantiates a new rectangle corners.

Parameters:
ll - the ll
ur - the ur
Throws:
InvalidMapDataException

RectangleCorners

public RectangleCorners(GeoCoordinates ll,
                        GeoCoordinates ur,
                        GeoCoordinates lr,
                        GeoCoordinates ul)
                 throws InvalidMapDataException
Instantiates a new rectangle corners.

Parameters:
ll - the ll
ur - the ur
lr - the lr
ul - the ul
Throws:
InvalidMapDataException
Method Detail

getLowerLeft

public final GeoCoordinates getLowerLeft()
Gets the lower left.

Returns:
the lower left

getLowerRight

public final GeoCoordinates getLowerRight()
Gets the lower right.

Returns:
the lower right

getUpperLeft

public final GeoCoordinates getUpperLeft()
Gets the upper left.

Returns:
the upper left

getUpperRight

public final GeoCoordinates getUpperRight()
Gets the upper right.

Returns:
the upper right

getCornerPoints

public final List<GeoCoordinates> getCornerPoints()
Gets the corner points (anti-clockwise starting from lower left coordinate).

Returns:
the corner points

hashCode

public final int hashCode()

Overrides:
hashCode in class Object

equals

public final boolean equals(Object o)

Overrides:
equals in class Object

toString

public final String toString()

Overrides:
toString in class Object


Copyright © 2013 TomTom International B.V.. All Rights Reserved.