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

Function Documentation

bool acme::Intersection(segment const &segment0_in, segment const &segment1_in, point &point_out = DUMMY_POINT, real tolerance = EPSILON)

Intersection between two segments

WARNING: This function does not support collinear objects!

Parameters
  • segment0_in – Input segment 0

  • segment1_in – Input segment 1

  • point_out – Output point

  • tolerance – Tolerance