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
StartVector3First endpoint of the central axis.
EndVector3Second endpoint of the central axis.
RadiusfloatRadius around the axis.
Properties
End
Second endpoint of the central axis.
public Vector3 End { get; init; }
Property Value
Radius
Radius around the axis.
public float Radius { get; init; }
Property Value
Start
First endpoint of the central axis.
public Vector3 Start { get; init; }