struct Capsule

book_4_sparkGenerated
code_blocksInput

Description

A capsule object, defined by 2 points and a radius. A capsule is a cylinder with round ends (inset half spheres on each end).

Members

Static Methods

Member NameSummary
FromHeightAndRadiusCreates a capsule from a specified height and radius.

Instance Properties

Member NameSummary
RandomPointInsideReturns a random point within this capsule.
RandomPointOnEdgeReturns a random point on the edge of this capsule.

Instance Fields

Member NameSummary
CenterAPosition of point A.
CenterBPosition of point B.
RadiusRadius of a capsule.