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

Function Documentation

bool acme::Intersection(ray const &ray0_in, ray const &ray1_in, ray &ray_out = DUMMY_RAY, real tolerance = EPSILON)

Intersection between two rays

WARNING: This function only support collinear objects!

Parameters
  • ray0_in – Input ray 0

  • ray1_in – Input ray 1

  • ray_out – Output ray

  • tolerance – Tolerance