KDTree.translate

giant.ray_tracer.kdtree:

KDTree.translate(self, translation)

Translate the tree by translation.

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

Parameters:

translation (ARRAY_LIKE) – A size 3 array that the tree is to be translated by