Cylinder

constructor(height: Double, bottomRadius: Double, topRadius: Double)

Create a cone or truncated cone.

If bottomRadius or topRadius are zero, then the result will be a cone.

Parameters

height

The height of the cone

bottomRadius

The radius of the bottom surface. May be 0 if topRadius is not also zero. May not be negative.

topRadius

The radius of the top surface. May be 0 is bottomRadius is not also zero. May not be negative


constructor(height: Double, radius: Double)

Create a cylinder with the given height and radius.