◆
ClipToRect()
static Vector2 ClipToRect
(
this Rect
rectToClipTo
,
Vector2
pointToClip
)
static
Parameters
rectToClipTo
Rect to which the point should be clipped within.
pointToClip
original Vector2 point to be clipped.
Returns
The resultant clipped point.
EyE
Unity
Extensions
Vector3Extensions