org.deegree.geometry.standard.curvesegments
Class DefaultCircle
java.lang.Object
org.deegree.geometry.standard.curvesegments.DefaultArc
org.deegree.geometry.standard.curvesegments.DefaultCircle
- All Implemented Interfaces:
- Arc, ArcString, Circle, CurveSegment
public class DefaultCircle
- extends DefaultArc
- implements Circle
Default implementation of Circle
segments.
- Version:
- $Revision:$, $Date:$
- Author:
- Markus Schneider , last edited by: $Author:$
Fields inherited from class org.deegree.geometry.standard.curvesegments.DefaultArc |
points |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultCircle
public DefaultCircle(Point p1,
Point p2,
Point p3)
- Creates a new
DefaultCircle
instance from the given parameters.
- Parameters:
p1
- p2
- p3
-
getMidPoint
public Point getMidPoint()
- Description copied from interface:
Circle
- Returns the mid-point of the circle.
- Specified by:
getMidPoint
in interface Circle
- Returns:
- the mid-point
getRadius
public Measure getRadius(Unit requestedUnits)
- Description copied from interface:
Circle
- Returns the radius of the circle.
- Specified by:
getRadius
in interface Circle
- Parameters:
requestedUnits
- units that the radius should be expressed as
- Returns:
- the radius of the arc
getEndPoint
public Point getEndPoint()
- Description copied from interface:
CurveSegment
- Returns the end point of the segment.
- Specified by:
getEndPoint
in interface CurveSegment
- Overrides:
getEndPoint
in class DefaultArc
- Returns:
- the end point of the segment
getSegmentType
public CurveSegment.CurveSegmentType getSegmentType()
- Description copied from interface:
CurveSegment
- Returns the type of curve segment.
- Specified by:
getSegmentType
in interface CurveSegment
- Overrides:
getSegmentType
in class DefaultArc
- Returns:
- the type of curve segment
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org]]>