Shapes

object Shapes

This object is a facade for the various ShapeFactory implementations.

Functions

buildFilledRectangle
Link copied to clipboard
common
fun buildFilledRectangle(topLeft: Position, size: Size): DefaultShape
Creates the points for a filled rectangle.
buildFilledTriangle
Link copied to clipboard
common
fun buildFilledTriangle(p1: Position, p2: Position, p3: Position): Shape
Creates the points for a filled triangle.
buildLine
Link copied to clipboard
common
fun buildLine(fromPoint: Position, toPoint: Position): Shape
buildRectangle
Link copied to clipboard
common
fun buildRectangle(topLeft: Position, size: Size): Shape
Creates the points for the outline of a rectangle.
buildTriangle
Link copied to clipboard
common
fun buildTriangle(p1: Position, p2: Position, p3: Position): Shape
Creates the points for the outline of a triangle.
equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open fun hashCode(): Int
toString
Link copied to clipboard
common
open fun toString(): String

Sources

(source)
Link copied to clipboard