buildFilledTriangle

fun buildFilledTriangle(params: TriangleParameters): Shape
fun buildFilledTriangle(p1: Position, p2: Position, p3: Position): Shape

Creates the points for a filled triangle. The triangle will be delimited by positions p1 to p2 to p3 and back to p1 from there.

Note that* all resulting shapes will be offset to the top left (0x0) position!

See also