org.deegree.geometry.standard.curvesegments
Class DefaultArcByCenterPoint

java.lang.Object
  extended by org.deegree.geometry.standard.curvesegments.DefaultArcByCenterPoint
All Implemented Interfaces:
ArcByCenterPoint, CurveSegment
Direct Known Subclasses:
DefaultCircleByCenterPoint

public class DefaultArcByCenterPoint
extends Object
implements ArcByCenterPoint

Default implementation of ArcByCenterPoint 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
 
Constructor Summary
DefaultArcByCenterPoint(Point midPoint, Measure radius, Angle startAngle, Angle endAngle)
          Creates a new DefaultArcByCenterPoint instance from the given parameters.
 
Method Summary
 int getCoordinateDimension()
          Returns the coordinate dimension, i.e. the dimension of the space that the curve is embedded in.
 Angle getEndAngle()
          Returns the bearing of the arc at the end.
 Point getEndPoint()
          Returns the end point of the segment.
 Point getMidPoint()
          Returns the center point of the arc.
 Measure getRadius(Unit requestedUnits)
          Returns the radius of the arc.
 CurveSegment.CurveSegmentType getSegmentType()
          Returns the type of curve segment.
 Angle getStartAngle()
          Returns the bearing of the arc at the start.
 Point getStartPoint()
          Returns the start point of the segment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultArcByCenterPoint

public DefaultArcByCenterPoint(Point midPoint,
                               Measure radius,
                               Angle startAngle,
                               Angle endAngle)
Creates a new DefaultArcByCenterPoint instance from the given parameters.

Parameters:
midPoint -
radius -
startAngle -
endAngle -
Method Detail

getEndAngle

public Angle getEndAngle()
Description copied from interface: ArcByCenterPoint
Returns the bearing of the arc at the end.

Specified by:
getEndAngle in interface ArcByCenterPoint
Returns:
the bearing of the arc at the end

getMidPoint

public Point getMidPoint()
Description copied from interface: ArcByCenterPoint
Returns the center point of the arc.

Specified by:
getMidPoint in interface ArcByCenterPoint
Returns:
the center point of the arc

getRadius

public Measure getRadius(Unit requestedUnits)
Description copied from interface: ArcByCenterPoint
Returns the radius of the arc.

Specified by:
getRadius in interface ArcByCenterPoint
Parameters:
requestedUnits - units that the radius should be expressed as
Returns:
the radius of the arc

getStartAngle

public Angle getStartAngle()
Description copied from interface: ArcByCenterPoint
Returns the bearing of the arc at the start.

Specified by:
getStartAngle in interface ArcByCenterPoint
Returns:
the bearing of the arc at the start

getCoordinateDimension

public int getCoordinateDimension()
Description copied from interface: CurveSegment
Returns the coordinate dimension, i.e. the dimension of the space that the curve is embedded in.

Specified by:
getCoordinateDimension in interface CurveSegment
Returns:
the coordinate dimension

getStartPoint

public Point getStartPoint()
Description copied from interface: CurveSegment
Returns the start point of the segment.

Specified by:
getStartPoint in interface CurveSegment
Returns:
the start point of the segment

getEndPoint

public Point getEndPoint()
Description copied from interface: CurveSegment
Returns the end point of the segment.

Specified by:
getEndPoint in interface CurveSegment
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
Returns:
the type of curve segment


Copyright © 2011. All Rights Reserved.