Table of Contents

Method Scale

Namespace
Pinwheel.Vista.RealWorldData
Assembly
Pinwheel.Vista.RealWorldData.Runtime.dll

Scale(GeoRect, double, double, double)

Scales the rectangle around a normalized pivot inside the rectangle.

public static GeoRect Scale(this GeoRect l, double f, double pivotLong = 0.5, double pivotLat = 0.5)

Parameters

l GeoRect

Rectangle to scale.

f double

Scale factor applied around the pivot.

pivotLong double

Normalized horizontal pivot, where 0 is minX and 1 is maxX.

pivotLat double

Normalized vertical pivot, where 0 is minY and 1 is maxY.

Returns

GeoRect

The scaled rectangle.