Capsule

@ConfigSerializable
data class Capsule(val axis: LinAxis, val halfHeight: Double, val radius: Double) : Geometry

A "swept sphere" shape centered around zero defined by an axis, half-height and radius.

Parameters

axis

The axis in which the half-height stretches.

halfHeight

The half-height of the capsule, up to the start of the hemisphere "caps" of the capsule. If this were 0 (which is invalid), the shape would be a sphere defined by radius. Must be greater than 0.

radius

The radius of the hemisphere caps of the capsule. Must be greater than 0.

Constructors

Link copied to clipboard
constructor(axis: LinAxis, halfHeight: Double, radius: Double)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard