Version: 2022.3
언어: 한국어
public bool Contains (Vector2Int position);

파라미터

position Position to check.

반환

bool Whether the position is within the RectInt.

설명

Returns true if the given position is within the RectInt.

A point is considered to lie within the RectInt if its coordinates are greater than or equal to the RectInt's min coordinates, and less than the RectInt's max coordinates.