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 | Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str]) – an array representing a rotation or a Rotation object by which to rotate the rays

Return type:

Self