mmcs-ruby / primitives

MIT License
2 stars 6 forks source link

Implement elementary geometry algorithms #12

Open koenigsley opened 2 years ago

koenigsley commented 2 years ago

Description

To implement Boolean operations we have to use elementary geometry algorithms (intersection of straight lines, distance between points etc).

Proposed solution

We can implement a module with elementary geometry algorithms.

module Primitives
  module Elementary
    def distance_points(p1, p2)
      # Your implementation goes here...
    end

    # Other algorithms implementation goes here...

    def intersect_straight_lines(straight_line1, straight_line2)
      # Your implementation goes here...
    end
  end
end

Alternatives considered

You can suggest your own implementation.

leviathan-7 commented 2 years ago

I(Michael Grober)'will take it

koenigsley commented 2 years ago

Note: this issue depends on #5, #8 and #9