def intersect(self, ray: rays.Ray): """Return the t values for where the ray intersects the shape""" # Transform the ray by the inverse of the shape's transform to get into # object coordinates local_ray = ray.transform(self.inverse_transform) return self.local_intersect(local_ray)