SceneObject.change_orientation

giant.ray_tracer.scene:

SceneObject.change_orientation(new_orientation)[source]

Change the orientation of the frame the object is expressed in.

This is done by first applying the inverse rotation of the current orientation to get back to the base frame, and then applying the new orientation. Note that we also update the orientation for the position vector in the same way.

Parameters:

new_orientation (Rotation | Sequence | ndarray) – the new frame orientation to express the object and location in