| Package | com.yworks.bridge.geom |
| Class | public class Rectangle2DDouble |
| Inheritance | Rectangle2DDouble Rectangle2D YObject Object |
| Property | Defined By | ||
|---|---|---|---|
![]() | bounds : Rectangle [read-only]
Returns the bounding box of the Shape. | Rectangle2D | |
| bounds2D : Rectangle2D [override] [read-only] | Rectangle2DDouble | ||
![]() | centerX : Number [read-only]
Returns the X coordinate of the center of this rectangle in double precision. | Rectangle2D | |
![]() | centerY : Number [read-only]
Returns the Y coordinate of the center of this rectangle in double precision. | Rectangle2D | |
| empty : Boolean [override] [read-only] | Rectangle2DDouble | ||
![]() | frame : Rectangle2D
Getter:
Returns the framing Rectangle2D that defines the overall shape of this object. | Rectangle2D | |
| _height : Number | Rectangle2DDouble | ||
| height : Number [override] [read-only] | Rectangle2DDouble | ||
![]() | maxX : Number [read-only]
Returns the largest X coordinate of the upper left corner of this rectangle in double precision. | Rectangle2D | |
![]() | maxY : Number [read-only]
Returns the largest Y coordinate of the upper left corner of this rectangle in double precision. | Rectangle2D | |
![]() | minX : Number [read-only]
Returns the smallest X coordinate of the upper left corner of this rectangle in double precision. | Rectangle2D | |
![]() | minY : Number [read-only]
Returns the smallest Y coordinate of the upper left corner of this rectangle in double precision. | Rectangle2D | |
| rect : Rectangle2D [override] [write-only] | Rectangle2DDouble | ||
| _width : Number | Rectangle2DDouble | ||
| width : Number [override] [read-only] | Rectangle2DDouble | ||
| _x : Number | Rectangle2DDouble | ||
| x : Number [override] [read-only] | Rectangle2DDouble | ||
| _y : Number | Rectangle2DDouble | ||
| y : Number [override] [read-only] | Rectangle2DDouble | ||
| Method | Defined By | ||
|---|---|---|---|
Rectangle2DDouble(x:Number, y:Number, width:Number, height:Number, init:Boolean = true)
Constructs a new Rectangle2D whose top-left corner is specified as (x, y) and whose width and height are specified by the arguments of the same name. | Rectangle2DDouble | ||
![]() |
Adds the Point2D object p to this Rectangle2D. | Rectangle2D | |
![]() | addPoint2(x:Number, y:Number):void
Adds a point, specified by the double precision arguments px and py, to this Rectangle2D. | Rectangle2D | |
![]() | addRectangle(r:Rectangle2D):void
Adds a Rectangle2D object to this Rectangle2D. | Rectangle2D | |
clone():Object [override] | Rectangle2DDouble | ||
![]() | containsPoint2(x:Number, y:Number):Boolean
Tests if a specified coordinate is inside the boundary of this Rectangle2D. | Rectangle2D | |
![]() | containsRectangle(rect:Rectangle2D):Boolean
Tests if the interior of this Rectangle2D entirely contains the specified Rectangle2D. | Rectangle2D | |
![]() | containsRectangle2(x:Number, y:Number, width:Number, height:Number):Boolean
Tests if the interior of this Rectangle2D entirely contains the specified set of rectangular coordinates. | Rectangle2D | |
[override] | Rectangle2DDouble | ||
[override] | Rectangle2DDouble | ||
![]() | equals(obj:Object):Boolean [override]
Checks whether two rectangles are equal. | Rectangle2D | |
getClass():Class [override] | Rectangle2DDouble | ||
![]() | hashCode():int [override] | Rectangle2D | |
![]() | [static]
Intersects the pair of specified source Rectangle2D objects and puts the result into the specified destination Rectangle2D object. | Rectangle2D | |
![]() | intersectsLine(x1:Number, y1:Number, x2:Number, y2:Number):Boolean
Tests if the specified line segment intersects the interior of this Rectangle2D. | Rectangle2D | |
![]() | intersectsRectangle(rect:Rectangle2D):Boolean
Tests if the interior of this Rectangle2D intersects the specified Rectangle2D. | Rectangle2D | |
![]() | intersectsRectangle2(x:Number, y:Number, width:Number, height:Number):Boolean
Tests if the interior of this Rectangle2D intersects the interior of a specified set of rectangular coordinates. | Rectangle2D | |
[static]
Constructs a new Rectangle2D whose top-left corner is at (0, 0) in the coordinate space, and whose width and height are both zero. | Rectangle2DDouble | ||
newRectangle2DDouble2(x:Number, y:Number, width:Number, height:Number):Rectangle2DDouble [static]
Constructs a new Rectangle2D whose top-left corner is specified as (x, y) and whose width and height are specified by the arguments of the same name. | Rectangle2DDouble | ||
![]() |
Determines where the specified Point2D lies with respect to this Rectangle2D. | Rectangle2D | |
outcode2(px:Number, py:Number):int [override] | Rectangle2DDouble | ||
![]() | setFrame(x:Number, y:Number, width:Number, height:Number):void
Sets the location and size of the outer bounds of this Rectangle2D to the specified rectangular values. | Rectangle2D | |
![]() | Rectangle2D | ||
![]() |
Sets the framing rectangle of this Shape based on a specified center Point2D and corner Point2D. | Rectangle2D | |
![]() | setFrameFromCenter2(centerX:Number, centerY:Number, cornerX:Number, cornerY:Number):void
Sets the framing rectangle of this Shape based on the specified center point coordinates and corner point coordinates. | Rectangle2D | |
![]() |
Sets the diagonal of the framing rectangle of this Shape based on the two specified coordinates. | Rectangle2D | |
![]() | setFrameFromDiagonal2(x1:Number, y1:Number, x2:Number, y2:Number):void
Sets the diagonal of the framing rectangle of this Shape based on the two specified coordinates. | Rectangle2D | |
setRect(x:Number, y:Number, width:Number, height:Number):void [override] | Rectangle2DDouble | ||
toString():String | Rectangle2DDouble | ||
![]() | [static]
Unions the pair of specified source Rectangle2D objects and puts the result into the specified destination Rectangle2D object. | Rectangle2D | |
| Method | Defined By | ||
|---|---|---|---|
cloneImpl(o:Object):void [override] | Rectangle2DDouble | ||
![]() | initRectangle2D():void | Rectangle2D | |
initRectangle2DDouble1():void
Initializes this object. | Rectangle2DDouble | ||
initRectangle2DDouble2(x:Number, y:Number, width:Number, height:Number):void
Initializes this object. | Rectangle2DDouble | ||
| _height | property |
public var _height:Number
| _width | property |
public var _width:Number
| _x | property |
public var _x:Number
| _y | property |
public var _y:Number
| bounds2D | property |
bounds2D:Rectangle2D [read-only] [override] public function get bounds2D():Rectangle2D| empty | property |
empty:Boolean [read-only] [override] public function get empty():Boolean| height | property |
height:Number [read-only] [override] public function get height():Number| rect | property |
rect:Rectangle2D [write-only] [override] public function set rect(value:Rectangle2D):void| width | property |
width:Number [read-only] [override] public function get width():Number| x | property |
x:Number [read-only] [override] public function get x():Number| y | property |
y:Number [read-only] [override] public function get y():Number| Rectangle2DDouble | () | Constructor |
public function Rectangle2DDouble(x:Number, y:Number, width:Number, height:Number, init:Boolean = true)Constructs a new Rectangle2D whose top-left corner is specified as (x, y) and whose width and height are specified by the arguments of the same name.
Parametersx:Number — the specified x coordinate.
| |
y:Number — the specified y coordinate.
| |
width:Number — the width of the Rectangle.
| |
height:Number — the height of the Rectangle.
| |
init:Boolean (default = true) — An internally used switch to help handle proper instance initialization in inheritance chains where classes can have multiple constructor-like factory methods.
This parameter can safely be ignored/omitted when calling the constructor.
|
| clone | () | method |
override public function clone():ObjectReturnsObject |
| cloneImpl | () | method |
override protected function cloneImpl(o:Object):voidParameters
o:Object |
| createIntersection | () | method |
override public function createIntersection(r:Rectangle2D):Rectangle2DParameters
r:Rectangle2D |
Rectangle2D |
| createUnion | () | method |
override public function createUnion(r:Rectangle2D):Rectangle2DParameters
r:Rectangle2D |
Rectangle2D |
| getClass | () | method |
override public function getClass():ClassReturnsClass |
| initRectangle2DDouble1 | () | method |
protected final function initRectangle2DDouble1():void
Initializes this object. See the documentation of the corresponding factory method newRectangle2DDouble1() for details.
See also
| initRectangle2DDouble2 | () | method |
protected final function initRectangle2DDouble2(x:Number, y:Number, width:Number, height:Number):void
Initializes this object. See the documentation of the corresponding factory method newRectangle2DDouble2() for details.
Parameters
x:Number | |
y:Number | |
width:Number | |
height:Number |
See also
| newRectangle2DDouble1 | () | method |
public static function newRectangle2DDouble1():Rectangle2DDoubleConstructs a new Rectangle2D whose top-left corner is at (0, 0) in the coordinate space, and whose width and height are both zero.
ReturnsRectangle2DDouble |
| newRectangle2DDouble2 | () | method |
public static function newRectangle2DDouble2(x:Number, y:Number, width:Number, height:Number):Rectangle2DDoubleConstructs a new Rectangle2D whose top-left corner is specified as (x, y) and whose width and height are specified by the arguments of the same name.
Parameters
x:Number — the specified x coordinate.
| |
y:Number — the specified y coordinate.
| |
width:Number — the width of the Rectangle.
| |
height:Number — the height of the Rectangle.
|
Rectangle2DDouble |
| outcode2 | () | method |
override public function outcode2(px:Number, py:Number):intParameters
px:Number | |
py:Number |
int |
| setRect | () | method |
override public function setRect(x:Number, y:Number, width:Number, height:Number):voidParameters
x:Number | |
y:Number | |
width:Number | |
height:Number |
| toString | () | method |
public function toString():StringReturnsString |