Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Contains

Is point contained in the bounding box?
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule

Contains(Vector3Int)

Is
point
contained in the bounding box?
public bool Contains(Vector3Int position)

Parameters

position

Point to check.

Returns

Type

Description

boolIs
point
contained in the bounding box?

Remarks

A point is contained in the bounding box if its x, y and z components are greater or equal to _xMin, _yMin and _zMin respectively, and less than _xMax, _yMax and _zMax respectively.

Contains(Vector3Int)

Is
point
contained in the bounding box?
public bool Contains(in Vector3Int position)

Parameters

position

Point to check.

Returns

Type

Description

boolIs
point
contained in the bounding box?

Remarks

A point is contained in the bounding box if its x, y and z components are greater or equal to _xMin, _yMin and _zMin respectively, and less than _xMax, _yMax and _zMax respectively.