de.cau.cs.kieler.core.math
Class BezierSpline.BezierCurve

java.lang.Object
  extended by de.cau.cs.kieler.core.math.BezierSpline.BezierCurve
Enclosing class:
BezierSpline

public class BezierSpline.BezierCurve
extends Object

Represents a part of the whole spline consisting of start and end point, and two control points. Think about using a plain Vector with 4 elements!

Rating red

Field Summary
 KVector end
          end point.
 KVector fstControlPnt
          first control point.
 KVector sndControlPnt
          snd control point.
 KVector start
          start point.
 
Constructor Summary
BezierSpline.BezierCurve(KVector startPnt, KVector fstCtrPnt, KVector sndCtrPnt, KVector endPnt)
          .
 
Method Summary
 List<KVector> asVectorList()
          Returns this segment of the bezierspline as a list of Points.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

start

public KVector start
start point.


fstControlPnt

public KVector fstControlPnt
first control point.


sndControlPnt

public KVector sndControlPnt
snd control point.


end

public KVector end
end point.

Constructor Detail

BezierSpline.BezierCurve

public BezierSpline.BezierCurve(KVector startPnt,
                                KVector fstCtrPnt,
                                KVector sndCtrPnt,
                                KVector endPnt)
.

Parameters:
startPnt - starting point
fstCtrPnt - first control point
sndCtrPnt - snd control point
endPnt - end point
Method Detail

asVectorList

public List<KVector> asVectorList()
Returns this segment of the bezierspline as a list of Points.

Returns:
list with points as KVector