Interface for mutable rectangles aligned to the axes in 2D coordinate space with double precision coordinates.
Remarks
Type Details
- yfiles module
- view-component
- yfiles-umd modules
- All view modules
- Legacy UMD name
- yfiles.geometry.IMutableRectangle
See Also
Properties
Gets the coordinates of the bottom left corner of the rectangle as a Point.
Defined in
Gets the coordinates of the bottom right corner of the rectangle as a Point.
Defined in
Gets the coordinates of the center of the rectangle as a Point.
Defined in
Gets or sets the height of this instance.
Remarks
See Also
Implements
Determines whether the specified rectangle is empty.
Remarks
Defined in
Gets the maximum X coordinate of the rectangle.
Remarks
Defined in
Gets the maximum Y coordinate of the rectangle.
Remarks
Defined in
Gets the coordinates of the top left corner of the rectangle as a Point.
Defined in
Gets the coordinates of the top right corner of the rectangle as a Point.
Defined in
Gets or sets the width of this instance.
Remarks
See Also
Implements
Gets or sets the x coordinate for this point.
Gets or sets the y coordinate for this point.
Methods
Adds a rectangle to another one.
Remarks
Parameters
A map of options to pass to the method.
- rectangle2 - IRectangle
- The rectangle to be added.
Adds a point to a rectangle, possibly enlarging the rectangle.
Remarks
Parameters
A map of options to pass to the method.
- point - IPoint
- The coordinate to include in the bounds.
Determines whether the given rectangle contains the provided point.
Parameters
A map of options to pass to the method.
- point - IPoint
- The point to test.
Returns
- ↪boolean
true
iff the point lies inside the rectangle.
Defined in
Calculates the Euclidean distance between two points.
Parameters
A map of options to pass to the method.
- point2 - IPoint
- The second point.
Returns
- ↪number
- The distance between the two points.
Overrides
Sets the coordinates of the point to the given values.
Parameters
A map of options to pass to the method.
- x - number
- The new x coordinate
- y - number
- The new y coordinate
Defined in
Sets the coordinates of the point to the given values.
Parameters
A map of options to pass to the method.
- location - IPoint
- The new location.
Defined in
Applies a new position and size to a given mutable rectangle.
Parameters
A map of options to pass to the method.
- x - number
- The new x coordinate of the upper left corner of the rectangle.
- y - number
- The new y coordinate of the upper left corner of the rectangle.
- width - number
- The new width of the rectangle.
- height - number
- The new height of the rectangle.
Applies a new position and size to a given mutable rectangle.
Parameters
A map of options to pass to the method.
- newRectangle - IRectangle
- The bounds to set to the
rectangle
.
Sets the coordinates of the size to the given values.
Parameters
A map of options to pass to the method.
- newWidth - number
- The new x coordinate
- newHeight - number
- The new y coordinate
Defined in
Sets the coordinates of the size to the given values.
Parameters
A map of options to pass to the method.
- newSize - ISize
- The new location.
Defined in
Creates the union of two rectangles, placing the result in the this parameter.
Remarks
Parameters
A map of options to pass to the method.
- rectangle1 - IRectangle
- The first rectangle to create the union of.
- rectangle2 - IRectangle
- The second rectangle to create the union of.