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

Function Documentation

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

Intersection between ray and segment

WARNING: This function only support collinear objects!

Parameters
  • ray_in – Input ray

  • segment_in – Input segment

  • segment_out – Output segment

  • tolerance – Tolerance