Capsule.from_line_and_radius
- classmethod Capsule.from_line_and_radius(line, radius)[source]
Construct a capsule from a line and a radius.
- Parameters:
- line
compas.geometry.Line
The line.
- radiusfloat
The radius.
- line
- Returns:
compas.geometry.Capsule
The constructed capsule.
See also
Examples
>>> line = Line([0, 0, 0], [0, 0, 1]) >>> capsule = Capsule.from_line_and_radius(line, 0.3)