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

Function Documentation

bool acme::Intersection(line const &line_in, ray const &ray_in, ray &ray_out = DUMMY_RAY, real tolerance = EPSILON)

Intersection between line and ray

WARNING: This function only support collinear objects!

Parameters
  • line_in – Input line

  • ray_in – Input ray

  • ray_out – Output ray

  • tolerance – Tolerance