buildTriangle

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

Creates the points for the outline of a triangle. The outline will go through 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