fromAnchor

fun fromAnchor(anchorUV: Vector2, anchor: Vector2, width: Double, height: Double = width): Rectangle(source)

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