Class: FXDC

Inherits:
Object
  • Object
show all
Defined in:
lib/IFMapper/FXSpline.rb

Direct Known Subclasses

FXDCPostscript

Instance Method Summary collapse

Instance Method Details

#drawBSpline(p) ⇒ Object

Draw a bspline curve of any number of segments



46
47
48
49
50
51
# File 'lib/IFMapper/FXSpline.rb', line 46

def drawBSpline(p)
  tmp = FXSpline::bspline(p)
  pts = tmp.collect { |x| FXPoint.new( x[0].to_i, x[1].to_i) }
  drawLines(pts)
  return pts
end