Interface for oriented rectangles in 2D coordinate space with double precision coordinates.
Remarks
(0,-1)
. This interface provides read access to the features of the oriented rectangle only, however this does not mean that an instance that implements IOrientedRectangle
will always return the same values for its properties. Often times the instance provides a dynamic read access to the current state of a rectangle. It depends on the context whether it is allowed to or even necessary to copy the state of the properties or whether the reference to the instance should always be used to query the values.Type Details
- yfiles module
- view-component
- yfiles-umd modules
- All view modules
- Legacy UMD name
- yfiles.geometry.IOrientedRectangle
See Also
Properties
Determines the bounds of an oriented rectangle.
Remarks
Gets the current height of this instance.
Gets the current width of this instance.
Methods
Determines whether the given oriented rectangle contains the provided point, using an epsilon value.
Parameters
A map of options to pass to the method.
- point - Point
- The coordinates of the point to test.
- eps - number
- A positive value allows for fuzzy hit testing. If the point lies outside the given object but it's distance is less than or equal to that value, it will be considered a hit.
Returns
- ↪boolean
true
iff the point lies inside the rectangle.
Creates a transformation matrix that can be used to transform points that are in the local coordinate system of the oriented rectangle if the top-left corner is the origin.
Returns
- ↪Matrix
- A matrix that can be used to transform from oriented rectangle coordinates to world coordinates.
Creates an enlarged instance that is the same as this one but enlarged by the specified padding.
Parameters
A map of options to pass to the method.
- padding - Insets
- The padding to use to add to the instance.
Returns
- ↪OrientedRectangle
- A new OrientedRectangle instance which is enlarged by the given
padding
.
Determines whether the oriented rectangle contains the provided point, using an epsilon value.
Parameters
A map of options to pass to the method.
- location - Point
- The coordinates of the point to test.
- eps - number
- A positive value allows for fuzzy hit testing. If the point lies outside the given object but it's distance is less than or equal to that value, it will be considered a hit.
Returns
- ↪boolean
true
iff the point lies inside the rectangle.
Creates a YOrientedRectangle from a given IOrientedRectangle.
Returns
Class.ensure(LayoutExecutor)
More information.Constants
An immutable empty IOrientedRectangle with width and height of -1
.