-
Notifications
You must be signed in to change notification settings - Fork 979
Open
Labels
Milestone
Description
Currently the rotate_y::rotate_y() constructor takes a hittable and a rotation angle, gets the unrotated hittable AABB, and then computes the new AABB post rotation. This is undesirable because it means that the rotate_y class has to get all of the guts of the AABB object, then perform AABB computation to get the components of the new AABB, and then generate a new AABB from these pieces.
Instead, this should all be in a aabb::rotate_y() method, which returns a new transformed AABB.
Reactions are currently unavailable