Squeak Class Documentation category index | class index  
 
Spline
  category: ST80-Paths
  superclass: Path
  subclasses:

I represent a collection of Points through which a cubic spline curve is fitted.

instance methods
  accessing
  coefficients

  displaying
  computeCurve
displayOn:at:clippingBox:rule:fillColor:
displayOn:transformation:clippingBox:rule:fillColor:

  private
  derivs:first:second:third:

class methods
  examples
  example

instance methods
  accessing top  
 

coefficients

Answer an eight-element Array of Arrays each of which is the length
of the receiver. The first four arrays are the values, first, second and
third derivatives, respectively, for the parametric spline in x. The last
four elements are for y.


  displaying top  
 

computeCurve

Compute an array for the coefficients.


 

displayOn:at:clippingBox:rule:fillColor:

Display the receiver, a spline curve, approximated by straight line
segments.


 

displayOn:transformation:clippingBox:rule:fillColor:

Get the scaled and translated path of newKnots.


  private top  
 

derivs:first:second:third:

Compute the first, second and third derivitives (in coefficients) from
the Points in this Path (coefficients at: 1 and coefficients at: 5).


class methods
  examples top  
 

example

Designate points on the Path by clicking the red button. Terminate by
pressing any other button. A curve will be displayed, through the
selected points, using a long black form.