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.
Basic rectangle class. For more options see Rectangle.

Summary


Constructor
  • Rect (inX1:Number, inY1:Number, inX2:Number, inY2:Number)
    • Creates a rectangle that consists of four points
Instance properties
Instance methods

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)

tl

tl:Point
(read)

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