Table of Contents

Method PointToNormalized

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

PointToNormalized(Rect, Vector2)

Converts a point in rect space into normalized coordinates relative to that rect.

public static Vector2 PointToNormalized(Rect r, Vector2 p)

Parameters

r Rect

Reference rect.

p Vector2

Point expressed in the same space as r.

Returns

Vector2