translate method

Ray translate({
  1. double x = 0,
  2. double y = 0,
})

Translate the ray origin

Implementation

Ray translate({double x = 0, double y = 0}) {
  return Ray(origin.translate(x, y), direction);
}