Rect
| Kind of class: | class |
|---|---|
| Inherits from: | none |
| Classpath: | org.asapframework.util.types.Rect |
| File last modified: | Tuesday, 03 October 2006, 09:23:08 |
Deprecated Flash 7 projects: use Rectangle; projects that use Flash 8 or higher: use the Adobe Rectangle class.
Basic rectangle class.
For more options see Rectangle.Summary
Constructor
Rect
function Rect (
inX1:Number,
inY1:Number,
inX2:Number,
inY2:Number)
Creates a rectangle that consists of four points
Parameters:
inX1:
, Number defines the left corner
inY1:
, Number defines the top corner
inX2:
, Number defines the right corner
inY1:
, Number defines the bottom corner
Instance properties
br
br:Point
(read,write)
tl
tl:Point
(read,write)
x1
x1
(read,write)
x2
x2
(read,write)
y1
y1
(read,write)
y2
y2
(read,write)
Instance methods
containsPoint
function containsPoint (
inPoint:Point) : Boolean
Determines whether the point lies inside the rectangle
Parameters:
inPoint:
Point
Returns:
Boolean, true if the point lies inside the rectangle
overlaps
function overlaps (
inRect:Rect) : Boolean
Determines whether the rectangles overlap
Parameters:
inRect:
Rect
Returns:
Boolean, true if the rectangles overlap
toString
function toString (
) : String