triangle
fun triangle(v1: Vec2f, v2: Vec2f, v3: Vec3f, thickness: Int = this.thickness, joinType: JoinType = if (isJoinNecessary(thickness)) JoinType.POINTY else JoinType.NONE, color: Float = colorBits)
Draws a triangle at the specified points.
Parameters
v1
the coordinates of the first vertex
v2
the coordinates of the second vertex
v3
the coordinates of the third vertex
thickness
the thickness of the line in world units
joinType
the type of join, see JoinType
color
the packed color to draw the outline. See Color.toFloatBits.
fun triangle(x1: Float, y1: Float, x2: Float, y2: Float, x3: Float, y3: Float, thickness: Int = this.thickness, joinType: JoinType = if (isJoinNecessary(thickness)) JoinType.POINTY else JoinType.NONE, color: Float = colorBits)
Draws a triangle at the specified points.
Parameters
x1
x-coord of first vertex
y1
y-coord of first vertex
x2
x-coord of second vertex
y2
y-coord of second vertex
x3
x-coord of third vertex
y3
y-coord of third vertex
thickness
the thickness of the line in world units
joinType
the type of join, see JoinType
color
the packed color to draw the outline. See Color.toFloatBits.