org.robokind.api.interpolation.cspline
Class CSplineSegment

java.lang.Object
  extended by org.robokind.api.interpolation.cspline.CSplineSegment

public class CSplineSegment
extends Object

A CSplineSegment is a CSpline interpolation of 4 points. A CSpline with more points is created as a set of overlapping CSplineSegments.

Author:
Matthew Stevenson

Constructor Summary
CSplineSegment(List<Point2D> points)
          Creates a new CSplineSegment using the given points.
 
Method Summary
 List<Point2D> getInterpolatedPoints()
          Returns a List of interpolated point for the curve between the middle two points.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSplineSegment

public CSplineSegment(List<Point2D> points)
Creates a new CSplineSegment using the given points.

Parameters:
points - exactly 4 Points for defining the segment
Method Detail

getInterpolatedPoints

public List<Point2D> getInterpolatedPoints()
Returns a List of interpolated point for the curve between the middle two points.

Returns:
List of interpolated point for the curve between the middle two points


Copyright © 2011-2013. All Rights Reserved.