Class MQRectXY
Object
|
+--MQRectXY
- class
MQRectXY
Represents a bounding box in X and Y pixel coordinates.
Defined in utils.js
|
Method Summary |
MQPoint
|
getLowerRight()
Returns lower-right corner of the bounding box in X and Y coordinates.
|
MQPoint
|
getUpperLeft()
Returns upper-left corner of the bounding box in X and Y coordinates.
|
void
|
setLowerRight(<MQPoint> mqPoint)
Set the lower-right corner of bounding box in X and Y coordinates.
|
void
|
setUpperLeft(<MQPoint> mqPoint)
Set the upper-left corner of bounding box in X and Y coordinates.
|
MQRectXY
MQRectXY(<MQPoint> ulPoint, <MQPoint> lrPoint)
Constructs a MQRectXY object. Default is [(0,0),(0,0)].
Parameters:
ulPoint - Upper-left corner of the bounding box.
lrPoint - Lower-right corner of the bounding box.
getLowerRight
MQPoint getLowerRight()
Returns lower-right corner of the bounding box in X and Y coordinates.
NOTE: returns a copy of the MQPoint.
Returns:
Lower-right corner of the bounding box.
getUpperLeft
MQPoint getUpperLeft()
Returns upper-left corner of the bounding box in X and Y coordinates.
NOTE: returns a copy of the MQPoint.
Returns:
Upper-left corner of the bounding box.
setLowerRight
void setLowerRight(<MQPoint> mqPoint)
Set the lower-right corner of bounding box in X and Y coordinates.
NOTE: makes a copy of the MQPoint object passed in.
Parameters:
mqPoint - Lower-right corner of the bounding box.
setUpperLeft
void setUpperLeft(<MQPoint> mqPoint)
Set the upper-left corner of bounding box in X and Y coordinates.
NOTE: makes a copy of the MQPoint object passed in.
Parameters:
mqPoint - Upper-left corner of the bounding box.
Documentation generated by
JSDoc on Tue Oct 16 08:04:28 2007