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

Function Documentation

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

Intersection between two opposite rays

WARNING: This function only support collinear objects!

Parameters
  • ray0_in – Input ray 0

  • ray1_in – Input ray 1

  • segment_out – Output segment

  • tolerance – Tolerance