Method: Coords::Shapes::Line3d#initialize

Defined in:
lib/coords/shapes/line3d.rb

#initialize(x1, y1, z1, x2, y2, z2) ⇒ Line3d

Returns a new instance of Line3d.



5
6
7
8
# File 'lib/coords/shapes/line3d.rb', line 5

def initialize(x1, y1, z1, x2, y2, z2)
  @point1 = Coords::Cartesian3d.new(x1, y1, z1)
  @point2 = Coords::Cartesian3d.new(x2, y2, z2)
end