org.deegree.geometry.standard.curvesegments
Class DefaultCircle

java.lang.Object
  extended by org.deegree.geometry.standard.curvesegments.DefaultArc
      extended by 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: 31641 $, $Date: 2011-08-24 21:24:55 +0200 (Wed, 24 Aug 2011) $
Author:
Markus Schneider , last edited by: $Author: mschneider $

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.deegree.geometry.primitive.segments.CurveSegment
CurveSegment.CurveSegmentType
 
Field Summary
 
Fields inherited from class org.deegree.geometry.standard.curvesegments.DefaultArc
points
 
Constructor Summary
DefaultCircle(Point p1, Point p2, Point p3)
          Creates a new DefaultCircle instance from the given parameters.
 
Method Summary
 Point getEndPoint()
          Returns the end point of the segment.
 Point getMidPoint()
          Returns the mid-point of the circle.
 Measure getRadius(Unit requestedUnits)
          Returns the radius of the circle.
 CurveSegment.CurveSegmentType getSegmentType()
          Returns the type of curve segment.
 
Methods inherited from class org.deegree.geometry.standard.curvesegments.DefaultArc
getControlPoints, getCoordinateDimension, getNumArcs, getPoint1, getPoint2, getPoint3, getStartPoint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.deegree.geometry.primitive.segments.Arc
getPoint1, getPoint2, getPoint3
 
Methods inherited from interface org.deegree.geometry.primitive.segments.ArcString
getControlPoints, getNumArcs
 
Methods inherited from interface org.deegree.geometry.primitive.segments.CurveSegment
getCoordinateDimension, getStartPoint
 

Constructor Detail

DefaultCircle

public DefaultCircle(Point p1,
                     Point p2,
                     Point p3)
Creates a new DefaultCircle instance from the given parameters.

Parameters:
p1 -
p2 -
p3 -
Method Detail

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


Copyright © 2011. All Rights Reserved.