Sphere class
#include <darts/sphere.h>
A sphere centered at the origin with radius m_
Base classes
- class XformedSurfaceWithMaterial
- A convenience subclass of Surface for simple surfaces with a Transform and a Material.
Public functions
- auto intersect(const Ray3f& ray, HitInfo& hit) const -> bool override
- Ray-Surface intersection test.
- auto local_bounds() const -> Box3f override
- Return the surface's local-space AABB.
Protected variables
- float m_radius
- The radius of the sphere.