tiny.geometry.Capsule
Defined in tiny.geometry.
The points within radius of the segment from a to b.
API (5)
Actions
Public operations.
Fields and members
Public fields and members.
Source
Source: lib/geometry/src/primitive.zig:48
zig
/// The points within `radius` of the segment from `a` to `b`.pub const Capsule = struct { a: Vec3, b: Vec3, radius: f32, pub fn axis(capsule: Capsule) Segment { return .{ .a = capsule.a, .b = capsule.b }; } pub fn bounds(capsule: Capsule) Aabb { assert(capsule.radius >= 0); return capsule.axis().bounds().inflate(capsule.radius); }};Source: lib/geometry/src/root.zig:16
zig
pub const Capsule = primitive.Capsule;Audit
| Definitions | 3 |
|---|---|
| Public names | 3 |
| Members | 3 |
| Version | 26.7.0 |
| Revision | daab053ee433 |