Rect
| Kind of class: | class deprecated |
|---|---|
| Inherits from: | none |
| Classpath: | org.asapframework.util.types.Rect |
| File last modified: | Wednesday, 04 October 2006, 01:10:46 |
Deprecated Flash 7 projects: use Rectangle; projects that use Flash 8 or higher: use the Adobe Rectangle class.
Summary
Constructor
- Rect (inX1:Number, inY1:Number, inX2:Number, inY2:Number)
- Creates a rectangle that consists of four points
Instance properties
Instance methods
- containsPoint (inPoint:Point) : Boolean
- Determines whether the point lies inside the rectangle
- overlaps (inRect:Rect) : Boolean
- Determines whether the rectangles overlap
- toString : String
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
tl
x1
x1
(read,write)
x2
x2
(read,write)
y1
y1
(read,write)
y2
y2
(read,write)
Instance methods
containsPoint
Determines whether the point lies inside the rectangle
Parameters:
inPoint:
Point
Returns:
- Boolean, true if the point lies inside the rectangle
overlaps
Determines whether the rectangles overlap
Parameters:
inRect:
Rect
Returns:
- Boolean, true if the rectangles overlap
toString
function toString (
) : String