Class: FXDC
- Inherits:
-
Object
- Object
- FXDC
- Defined in:
- lib/IFMapper/FXSpline.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#drawBSpline(p) ⇒ Object
Draw a bspline curve of any number of segments.
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 |