Class: Kamelopard::Functions::PointSplineFunction
- Inherits:
-
SplineFunction
- Object
- Function
- FunctionMultiDim
- SplineFunction
- Kamelopard::Functions::PointSplineFunction
- Defined in:
- lib/kamelopard/spline.rb
Overview
Spline that takes Points as control points
Instance Attribute Summary
Attributes inherited from SplineFunction
#control_points, #tension, #total_dur
Attributes inherited from FunctionMultiDim
Attributes inherited from Function
#append, #compose, #end, #max, #min, #start, #verbose
Instance Method Summary collapse
- #add_control_point(point, dur) ⇒ Object
-
#initialize(tension = 0.5) ⇒ PointSplineFunction
constructor
A new instance of PointSplineFunction.
- #run_function(x) ⇒ Object
Methods inherited from FunctionMultiDim
Methods inherited from Function
Constructor Details
#initialize(tension = 0.5) ⇒ PointSplineFunction
Returns a new instance of PointSplineFunction.
118 119 120 121 |
# File 'lib/kamelopard/spline.rb', line 118 def initialize(tension = 0.5) @fields = [:longitude, :latitude, :altitude] super(@fields.length, tension) end |