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

Function Documentation

bool acme::Intersection(ray const &ray0_in, ray const &ray1_in, point &point_out = DUMMY_POINT, real tolerance = EPSILON)

Intersection between two rays

WARNING: This function does not support collinear objects!

Parameters
  • ray0_in – Input ray 0

  • ray1_in – Input ray 1

  • point_out – Output point

  • tolerance – Tolerance