lib/triangular/line.rb in triangular-0.0.1 vs lib/triangular/line.rb in triangular-0.0.2

- old
+ new

@@ -29,10 +29,10 @@ y_intersect = (@end.y - @start.y) / (@end.z - @start.z) * (z_plane - @start.z) + @start.y Point.new(x_intersect, y_intersect, z_plane) end - def to_svg_path - "<path d=\"M #{@start.x} #{@start.y} L #{@end.x} #{@end.y}\" fill=\"none\" stroke=\"black\" stroke-width=\"1\" />" + def to_svg_path(units) + "<path d=\"M #{@start.x} #{@start.y} L #{@end.x} #{@end.y}\" fill=\"none\" stroke=\"black\" stroke-width=\"#{Units.stroke_width(units)}\" />" end end end