Rect

open class Rect(var x: Float = 0.0f, var y: Float = 0.0f, var width: Float = 0.0f, var height: Float = 0.0f)

Author

Colton Daily

Constructors

Link copied to clipboard
fun Rect(x: Float = 0.0f, y: Float = 0.0f, width: Float = 0.0f, height: Float = 0.0f)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun intersects(rect: Rect): Boolean
fun intersects(left: Float, top: Float, right: Float, bottom: Float): Boolean
Link copied to clipboard
fun set(newX: Float, newY: Float, newWidth: Float, newHeight: Float): Rect
Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
var height: Float = 0.0f
Link copied to clipboard
Link copied to clipboard
var width: Float = 0.0f
Link copied to clipboard
var x: Float = 0.0f
Link copied to clipboard
val x2: Float
Link copied to clipboard
var y: Float = 0.0f
Link copied to clipboard
val y2: Float

Extensions

Link copied to clipboard