Interface for mutable oriented rectangles in 2D coordinate space with double precision coordinates.
Type Details
- yfiles module
- view-component
- yfiles-umd modules
- All view modules
- Legacy UMD name
- yfiles.geometry.IMutableOrientedRectangle
See Also
Properties
Gets the anchor location of the oriented rectangle as a Point struct.
Defined in
Gets or sets the x coordinate for the anchor of the rectangle.
Remarks
Implements
Gets or sets the y coordinate for the anchor of the rectangle.
Remarks
Implements
Determines the bounds of an oriented rectangle.
Gets the current height of this instance.
Remarks
See Also
Implements
Gets the current center of the oriented rectangle as a Point struct.
Defined in
Gets the up vector of the oriented rectangle as a Point struct.
Defined in
Gets the x value of the up vector.
Remarks
Defined in
Gets the y value of the up vector.
Remarks
Defined in
Gets the current width of this instance.
Remarks
See Also
Implements
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.
Defined in
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.
Defined in
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
.
Defined in
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.
Defined in
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
Sets the orientation of this oriented rectangle by modifying the up vector components.
Remarks
Parameters
A map of options to pass to the method.
- upx - number
- The x component of the normalized up vector.
- upy - number
- The y component of the normalized up vector.
See Also
Creates a YOrientedRectangle from a given IOrientedRectangle.
Returns
Class.ensure(LayoutExecutor)
More information.