Companion

Functions

Link copied to clipboard
fun fromAnchor(anchorUV: Vector2, anchor: Vector2, width: Double, height: Double = width): Rectangle

Creates a new Rectangle by specifying the anchorUV, anchor positions with dimensions width and height.

Link copied to clipboard
fun fromCenter(center: Vector2, width: Double, height: Double = width): Rectangle

Creates a new Rectangle by specifying the center position with dimensions width and height.

Properties

Link copied to clipboard

A zero-length Rectangle.