Pyramid
class Pyramid @JvmOverloads constructor(val position: Point = Point.ORIGIN, val width: Double = 1.0, val depth: Double = 1.0, val height: Double = 1.0) : Shape
A pyramid shape with a rectangular base tapering to an apex.
The base is defined by position, width, and depth, and the apex is centered above the base at the given height.
Parameters
position
The minimum-corner origin point of the base (default Point.ORIGIN)
width
The extent of the base along the x-axis (must be positive, default 1.0)
depth
The extent of the base along the y-axis (must be positive, default 1.0)
height
The height of the apex above the base along the z-axis (must be positive, default 1.0)