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

Function Documentation

bool acme::Intersection(line const &line_in, segment const &segment_in, segment &segment_out = DUMMY_SEGMENT, real tolerance = EPSILON)

Intersection between line and segment

WARNING: This function only support collinear objects!

Parameters
  • line_in – Input line

  • segment_in – Input segment

  • segment_out – Output segment

  • tolerance – Tolerance