tiny.geometry.Sphere
Defined in tiny.geometry.
API (3)
Actions
Public operations.
Fields and members
Public fields and members.
Source
Source: lib/geometry/src/primitive.zig:37
zig
pub const Sphere = struct { center: Vec3, radius: f32, pub fn bounds(sphere: Sphere) Aabb { assert(sphere.radius >= 0); return Aabb.fromPoint(sphere.center).inflate(sphere.radius); }};Source: lib/geometry/src/root.zig:15
zig
pub const Sphere = primitive.Sphere;Audit
| Definitions | 2 |
|---|---|
| Public names | 2 |
| Members | 2 |
| Version | 26.7.0 |
| Revision | daab053ee433 |