Skip to documentation
SLOP

tiny.geometry.Capsule

Reference 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.

No direct callersNo direct callstiny.geometryCapsule
Static calls · unresolved targets: unknown · external targets: unknown.

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

Definitions3
Public names3
Members3
Version26.7.0
Revisiondaab053ee433