Path
Represents a polygon face in 3D space, defined by an ordered list of vertices.
A Path requires at least 3 points and is used as the fundamental rendering primitive: each face of a Shape is a Path. Paths are immutable; all transform methods return new instances.
A variadic constructor Path(vararg points: Point) is provided for convenient inline construction.
The depth property is the average depth of all vertices, used for back-to-front sorting during rendering. Note that this is a sorting metric and is unrelated to the depth parameter on shape classes like io.github.jayteealao.isometric.shapes.Prism.
Parameters
points
The ordered vertices of this polygon (minimum 3)