W3cubDocs

/Haxe Flash

Rectangle

package flash.geom

Available on flash

Constructor

new(x:Float = 0, y:Float = 0, width:Float = 0, height:Float = 0)

Variables

bottom:Float

bottomRight:Point

height:Float

left:Float

size:Point

top:Float

topLeft:Point

width:Float

x:Float

y:Float

Methods

clone():Rectangle

contains(x:Float, y:Float):Bool

containsPoint(point:Point):Bool

containsRect(rect:Rectangle):Bool

copyFrom(sourceRect:Rectangle):Void

equals(toCompare:Rectangle):Bool

inflate(dx:Float, dy:Float):Void

inflatePoint(point:Point):Void

intersection(toIntersect:Rectangle):Rectangle

intersects(toIntersect:Rectangle):Bool

isEmpty():Bool

offset(dx:Float, dy:Float):Void

offsetPoint(point:Point):Void

setEmpty():Void

setTo(xa:Float, ya:Float, widtha:Float, heighta:Float):Void

toString():String

union(toUnion:Rectangle):Rectangle

© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/flash/geom/Rectangle.html