Struct Cylinder
- Namespace
- MathAssertions.Geometry3D
- Assembly
- MathAssertions.dll
Finite cylinder defined by two axis endpoints and a radius. Distinct from Capsule: the cylinder's caps are flat disks, not hemispheres.
public readonly record struct Cylinder : IEquatable<Cylinder>
- Implements
- Inherited Members
Constructors
Cylinder(Vector3, Vector3, float)
Finite cylinder defined by two axis endpoints and a radius. Distinct from Capsule: the cylinder's caps are flat disks, not hemispheres.
public Cylinder(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; }