RectangleD2DExtensionsGetIncludedTransformedRectangle Method |
Calculates the dimensions of the greatest (by area) rectangle included in an outer rectangle, where the inner rectangle is rotated/sheared/scaled.
Namespace: Altaxo.GeometryAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static RectangleD2D GetIncludedTransformedRectangle(
this RectangleD2D outerRectangle,
double sx,
double rx,
double ry,
double sy
)
Parameters
- outerRectangle RectangleD2D
- The outer rectangle.
- sx Double
- SX component of the transformation matrix that is applied to the inner rectangle.
- rx Double
- RX component of the transformation matrix that is applied to the inner rectangle.
- ry Double
- RY component of the transformation matrix that is applied to the inner rectangle.
- sy Double
- SY component of the transformation matrix that is applied to the inner rectangle.
Return Value
RectangleD2DThe inner rectangle with the greatest area that fits (when transformed with the transformation elements) into the outer rectangle.
The position of the returned rectangle is calculated so that it centers into the outer rectangle.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
RectangleD2D. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Exceptions See Also