Table of Contents

Method CalculateNormalizedQuadNonAlloc

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

CalculateNormalizedQuadNonAlloc(GeoRect, GeoRect, Vector2[])

Converts a tile rectangle into normalized quad vertices relative to a larger canvas rectangle.

public static void CalculateNormalizedQuadNonAlloc(GeoRect canvas, GeoRect tile, Vector2[] vertices)

Parameters

canvas GeoRect

Reference rectangle treated as the full 0..1 area.

tile GeoRect

Sub-rectangle to normalize into the canvas.

vertices Vector2[]

Destination array that receives the four quad vertices in clockwise order.