Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Encapsulate

Encapsulates the given AABB.
Read time 1 minuteLast updated 10 days ago

Definition

Encapsulate(MinMaxAABB)

Encapsulates the given AABB.
public void Encapsulate(MinMaxAABB aabb)

Parameters

AABB to encapsulate.

Remarks

Modifies this AABB so that it contains the given AABB. If the given AABB is already contained by this AABB, then this AABB doesn't change.
Additional Resources: MinMaxAABB.Contains

Encapsulate(float3)

Encapsulate the given point.
public void Encapsulate(float3 point)

Parameters

point

Point to encapsulate.

Remarks

Modifies this AABB so that it contains the given point. If the given point is already contained by this AABB, then this AABB doesn't change.
Additional Resources: MinMaxAABB.Contains