Class: Sevgi::Geometry::Equation::Linear::Horizontal

Inherits:
Diagonal
  • Object
show all
Defined in:
lib/sevgi/geometry/equation/linear.rb

Instance Attribute Summary

Attributes inherited from Diagonal

#intercept, #slope

Instance Method Summary collapse

Methods inherited from Diagonal

#approx, #eql?, #hash, #left?, #on?, #right?, #shift, #to_s, #x, #y

Constructor Details

#initialize(c) ⇒ Horizontal

Returns a new instance of Horizontal.



60
# File 'lib/sevgi/geometry/equation/linear.rb', line 60

def initialize(c) = super(slope: 0.0, intercept: c)