Method PointToNormalized
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
rRectReference rect.
pVector2Point expressed in the same space as
r.
Returns
- Vector2