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
lGeoRectRectangle to scale.
fdoubleScale factor applied around the pivot.
pivotLongdoubleNormalized horizontal pivot, where 0 is
minXand 1 ismaxX.pivotLatdoubleNormalized vertical pivot, where 0 is
minYand 1 ismaxY.
Returns
- GeoRect
The scaled rectangle.