Edytuj

Udostępnij za pośrednictwem


InscribedRectangle.IsInsideBoundary(Vector2) Method

Definition

Determine of the provided point lies within the defined rectangle.

public:
 bool IsInsideBoundary(UnityEngine::Vector2 point);
public bool IsInsideBoundary (UnityEngine.Vector2 point);
member this.IsInsideBoundary : UnityEngine.Vector2 -> bool
Public Function IsInsideBoundary (point As Vector2) As Boolean

Parameters

point
UnityEngine.Vector2

The point to check

Returns

True if the point is within the rectangle's bounds, false otherwise.

Exceptions

The rectangle is not valid.

Applies to