Rays.rotate

giant.ray_tracer.rays:

Rays.rotate(rotation)[source]

Rotates the start location(s) and the direction(s) of the ray(s) in place.

Parameters:

rotation (Rotation | Sequence | ndarray) – an array representing a rotation or a Rotation object by which to rotate the rays