InscribedRectangle.IsInsideBoundary(Vector2) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.