KDNode.translate

giant.ray_tracer.kdtree:

KDNode.translate(self, translation)

Translate this node and any child nodes by translation.

The bounding box, the child nodes, and the shapes are all translated.

This is probably not needed anymore since the KDTree applies translations and rotations to the rays for efficiency.

Parameters:

translation (ARRAY_LIKE) – a size 3 array by which to translate the node