Click or drag to resize

RectUtilsIsPointWithinRect Method

Returns true if the point is within the rectangle, otherwise false. Expects a rectangle defined in the following format: list index 0 is the bottom left (0,0), with indexes increasing clockwise around the rectangle.

Namespace:  ImmerseSDK
Assembly:  ImmerseSDK.App (in ImmerseSDK.App.dll) Version: 3.5.0.0 (3.5.0.0)
Syntax
C#
public static bool IsPointWithinRect(
	UnityEngine.Vector3 screenPoint,
	List<UnityEngine.Vector3> rect
)

Parameters

screenPoint
Type: UnityEngine.Vector3
rect
Type: System.Collections.GenericListUnityEngine.Vector3

Return Value

Type: Boolean
See Also