Table of Contents

Method Scale

Namespace
LMKit.Graphics.Geometry
Assembly
LM-Kit.NET.dll

Scale(double, double)

Returns a new rectangle scaled by the specified factors relative to the origin (0,0).

public Rectangle Scale(double x, double y)

Parameters

x double

The factor to scale along the X-axis.

y double

The factor to scale along the Y-axis.

Returns

Rectangle

A new Rectangle with its edges scaled by the given factors.

Remarks

This method multiplies edge coordinates independently and does not normalize if the scale is negative (which can flip edges). Call Normalize() to reorder edges.