Class: Sevgi::Geometry::Equation::Line::Horizontal

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

Instance Attribute Summary

Attributes inherited from Diagonal

#direction, #intercept, #slope

Instance Method Summary collapse

Methods inherited from Diagonal

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

Constructor Details

#initialize(c) ⇒ Horizontal

Returns a new instance of Horizontal.



8
9
10
# File 'lib/sevgi/geometry/equation/line/horizontal.rb', line 8

def initialize(c)
  super(slope: 0, intercept: c)
end