Table of Contents

Struct Capsule

Namespace
MathAssertions.Geometry3D
Assembly
MathAssertions.dll

Capsule defined by two axis endpoints and a radius. Geometrically, the capsule is the set of points within Radius of the line segment from Start to End: a cylinder of length |End - Start| with hemispherical caps.

public readonly record struct Capsule : IEquatable<Capsule>
Implements
Inherited Members

Constructors

Capsule(Vector3, Vector3, float)

Capsule defined by two axis endpoints and a radius. Geometrically, the capsule is the set of points within Radius of the line segment from Start to End: a cylinder of length |End - Start| with hemispherical caps.

public Capsule(Vector3 Start, Vector3 End, float Radius)

Parameters

Start Vector3

First endpoint of the central axis.

End Vector3

Second endpoint of the central axis.

Radius float

Radius around the axis.

Properties

End

Second endpoint of the central axis.

public Vector3 End { get; init; }

Property Value

Vector3

Radius

Radius around the axis.

public float Radius { get; init; }

Property Value

float

Start

First endpoint of the central axis.

public Vector3 Start { get; init; }

Property Value

Vector3