CapsuleShape class final

Capsule: a cylinder of height closed by two hemispheres of radius.

The profile has no repeated points, so the hemisphere-to-wall junction stays smooth.

Inheritance

Constructors

CapsuleShape({double radius = 0.3, double height = 0.5, int segments = 32, int rings = 8})
const

Properties

delegate → Shape
The shape this one reduces to.
no setteroverride
hashCode → int
The hash code for this object.
no setterinherited
height → double
final
name → String
Name for diagnostics and UI labels.
no setteroverride
radius → double
final
rings → int
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
segments → int
final

Methods

build({VertexLayout layout = VertexLayout.standard}) → MeshData
Generates the geometry for the requested layout.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited