class DemCurves::Line
Public Class Methods
new(start_point, center_point, end_point)
click to toggle source
Calls superclass method
DemCurves::PathElement::new
# File lib/core/path-element.rb, line 77 def initialize(start_point, center_point, end_point) super({ :start => start_point, :center => center_point, :end => end_point}) end
Public Instance Methods
generate()
click to toggle source
# File lib/core/path-element.rb, line 84 def generate @path_points = [self[:start].loc, self[:end].loc] end