Ellipsoid.trace

giant.ray_tracer.shapes.ellipsoid:

Ellipsoid.trace()

This method computes the intersect between rays and the ellipsoid, returning an INTERSECT_DTYPE numpy array with the intersect locations, surface normals at the intersects, and surface albedos at the intersects.

This method calls the intersect() method first, and then computes the local normal vector and albedo at the intersection points, returning the results in the proper structured array format.

Parameters:

rays (Rays) – The rays to perform the intersect check with

Returns:

A numpy array with INTERSECT_DTYPE as the data type.

Return type:

np.ndarray