GeometryUtility
Utility class for common geometric functions.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Class
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public sealed class GeometryUtility
Static Methods
Method | Description |
|---|---|
| CalculateBounds | Calculates the bounding box from the given array of positions and the transformation matrix. |
| CalculateFrustumPlanes | Calculates frustum planes. |
| TestPlanesAABB | Returns true if bounds are inside the plane array. |
| TryCreatePlaneFromPolygon | GeometryUtility.TryCreatePlaneFromPolygon creates a plane from the given list of vertices that define the polygon, as long as they do not characterize a straight line or zero area. |