Companion

object Companion

Functions

Link copied to clipboard
fun hole(height: Double, radius: Double): Cylinder

Because circles are approximated using regular polygons, an interior of a cylinder may be smaller than you may expect. This is especially true when the cylinder is used to accommodate a rod. The cross section of cylinders created here can completely contain a circle of the given radius.

fun hole(height: Double, radius: Double, sides: Int): Cylinder