org.deegree.geometry.standard.curvesegments
Class DefaultCubicSpline

java.lang.Object
  extended by org.deegree.geometry.standard.curvesegments.DefaultCubicSpline
All Implemented Interfaces:
CubicSpline, CurveSegment

public class DefaultCubicSpline
extends Object
implements CubicSpline

Default implementation of CubicSpline 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
DefaultCubicSpline(Points points, Point vectorAtStart, Point vectorAtEnd)
          Creates a new DefaultCubicSpline instance from the given parameters.
 
Method Summary
 Points getControlPoints()
          Returns the control points of the spline.
 int getCoordinateDimension()
          Returns the coordinate dimension, i.e. the dimension of the space that the curve is embedded in.
 Point getEndPoint()
          Returns the end point of the segment.
 CurveSegment.CurveSegmentType getSegmentType()
          Returns the type of curve segment.
 Point getStartPoint()
          Returns the start point of the segment.
 Point getVectorAtEnd()
          Returns the unit tangent vector at the end point of the spline.
 Point getVectorAtStart()
          Returns the unit tangent vector at the start point of the spline.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultCubicSpline

public DefaultCubicSpline(Points points,
                          Point vectorAtStart,
                          Point vectorAtEnd)
Creates a new DefaultCubicSpline instance from the given parameters.

Parameters:
points - control points, must have at least two entries
vectorAtStart - the unit tangent vector at the start point of the spline
vectorAtEnd - the unit tangent vector at the end point of the spline
Method Detail

getVectorAtStart

public Point getVectorAtStart()
Description copied from interface: CubicSpline
Returns the unit tangent vector at the start point of the spline.

Specified by:
getVectorAtStart in interface CubicSpline
Returns:
the unit tangent vector at the start point of the spline

getVectorAtEnd

public Point getVectorAtEnd()
Description copied from interface: CubicSpline
Returns the unit tangent vector at the end point of the spline.

Specified by:
getVectorAtEnd in interface CubicSpline
Returns:
the unit tangent vector at the end point of the spline

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

getControlPoints

public Points getControlPoints()
Description copied from interface: CubicSpline
Returns the control points of the spline.

Specified by:
getControlPoints in interface CubicSpline
Returns:
the control points of the spline

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.