file: Pyramid.aus

class: Pyramid

[20:7] extends: Prism

Wraps FXGL's Pyramid, a Prism subclass with a configurable polygonal base. The default base is a triangle (3 divisions) with the top radius collapsed to zero, producing the classic tetrahedral pyramid; raise NumDivisions for a square pyramid (4), pentagonal (5), and so on. Pyramid inherits the full Prism surface (bottomRadius, topRadius, height, numDivisions). A non-zero TopRadius produces a frustum.

Methods