KDTree.rotate

giant.ray_tracer.kdtree:

KDTree.rotate(self, rotation)

Rotate the tree by rotation.

The tree is not actually rotated, but its current orientation is stored so that we can rotate rays when we trace them through the tree which is usually more efficient.

Parameters:

rotation (Union[Rotation, ARRAY_LIKE]) – The rotation with which to rotate the tree