Table of Contents

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

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