Squeak Class Documentation category index | class index  
 
Bezier2Segment
  category: Balloon-Geometry
  superclass: LineSegment
  subclasses:

This class represents a quadratic bezier segment between two points

Instance variables:
via <Point> The additional control point (OFF the curve)

instance methods
  accessing
  bounds
via

  converting
  asBezier2Segment
asIntegerSegment

  initialize
  from:to:
from:to:via:
from:to:withMidPoint:
from:to:withMidPoint:at:

  printing
  printOn:
printOnStream:

  testing
  hasZeroLength
isBezier2Segment
isStraight

  vector functions
  length
lineSegmentsDo:
tangentAt:
tangentAtEnd
tangentAtStart
valueAt:

class methods
  instance creation
  from:to:via:
from:to:withMidPoint:
from:to:withMidPoint:at:
from:via:to:
from:withMidPoint:at:to:
from:withMidPoint:to:

instance methods
  accessing top  
 

bounds

Return the bounds containing the receiver


 

via

Return the control point


  converting top  
 

asBezier2Segment

Represent the receiver as quadratic bezier segment


 

asIntegerSegment

Convert the receiver into integer representation


  initialize top  
 

from:to:

Initialize the receiver as straight line


 

from:to:via:

Initialize the receiver


 

from:to:withMidPoint:

Initialize the receiver with the pointOnCurve assumed at the parametric value 0.5


 

from:to:withMidPoint:at:

Initialize the receiver with the pointOnCurve at the given parametric value


  printing top  
 

printOn:

Print the receiver on aStream


 

printOnStream:


  testing top  
 

hasZeroLength

Return true if the receiver has zero length


 

isBezier2Segment

Return true if the receiver is a quadratic bezier segment


 

isStraight

Return true if the receiver represents a straight line


  vector functions top  
 

length

Return the length of the receiver


 

lineSegmentsDo:

Evaluate aBlock with the receiver's line segments


 

tangentAt:

Return the tangent at the given parametric value along the receiver


 

tangentAtEnd

Return the tangent for the last point


 

tangentAtStart

Return the tangent for the first point


 

valueAt:

Evaluate the receiver at the given parametric value


class methods
  instance creation top  
 

from:to:via:


 

from:to:withMidPoint:


 

from:to:withMidPoint:at:


 

from:via:to:


 

from:withMidPoint:at:to:


 

from:withMidPoint:to: