Function acme::Intersection(segment const&, segment const&, segment&, real)

Function Documentation

bool acme::Intersection(segment const &segment0_in, segment const &segment1_in, segment &segment_out = DUMMY_SEGMENT, real tolerance = EPSILON)

Intersection between two segments

WARNING: This function only support collinear objects!

Parameters
  • segment0_in – Input segment 0

  • segment1_in – Input segment 1

  • segment_out – Output segment

  • tolerance – Tolerance