PointToNormalized
Returns the normalized coordinates corresponding to the point.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
PointToNormalized(Rect, Vector2)
Returns the normalized coordinates corresponding to the point.
public static Vector2 PointToNormalized(Rect rectangle, Vector2 point)
Parameters
Returns
Type | Description |
|---|---|
| Vector2 |
Remarks
The returned Vector2 is in the range 0 to 1 with values more 1 or less than zero clamped.
PointToNormalized(Rect, Vector2)
Returns the normalized coordinates corresponding to the point.
public static Vector2 PointToNormalized(in Rect rectangle, in Vector2 point)
Parameters
Returns
Type | Description |
|---|---|
| Vector2 |
Remarks
The returned Vector2 is in the range 0 to 1 with values more 1 or less than zero clamped.