Class: Kamelopard::Functions::Line
- Inherits:
-
Cubic
- Object
- Function
- Function1D
- Cubic
- Kamelopard::Functions::Line
- Defined in:
- lib/kamelopard/function.rb
Overview
Describes a line
Instance Attribute Summary
Attributes inherited from Cubic
Attributes inherited from Function
#append, #compose, #end, #max, #min, #start, #verbose
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(c1 = 1.0, c0 = 0.0, min = 0.0, max = 1.0) ⇒ Line
constructor
A new instance of Line.
Methods inherited from Cubic
Methods inherited from Function1D
Methods inherited from Function
Constructor Details
#initialize(c1 = 1.0, c0 = 0.0, min = 0.0, max = 1.0) ⇒ Line
Returns a new instance of Line.
152 153 154 |
# File 'lib/kamelopard/function.rb', line 152 def initialize(c1 = 1.0, c0 = 0.0, min = 0.0, max = 1.0) super(0.0, 0.0, c1, c0, min, max) end |