|
|
|
@ -183,7 +183,7 @@ namespace Avalonia |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Multiplies a rectangle by a vector.
|
|
|
|
/// Multiplies a rectangle by a scaling vector.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="rect">The rectangle.</param>
|
|
|
|
/// <param name="scale">The vector scale.</param>
|
|
|
|
@ -197,17 +197,6 @@ namespace Avalonia |
|
|
|
rect.Height * scale.Y); |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Transforms a rectangle by a matrix and returns the axis-aligned bounding box.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="rect">The rectangle.</param>
|
|
|
|
/// <param name="matrix">The matrix.</param>
|
|
|
|
/// <returns>The axis-aligned bounding box.</returns>
|
|
|
|
public static Rect operator *(Rect rect, Matrix matrix) |
|
|
|
{ |
|
|
|
return new Rect(rect.TopLeft * matrix, rect.BottomRight * matrix); |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Divides a rectangle by a vector.
|
|
|
|
/// </summary>
|
|
|
|
|