Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GeometryUtility

Utility class for common geometric functions.
Read time 1 minuteLast updated 5 days ago

Definition

  • Type: Class
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public sealed class GeometryUtility

Static Methods

Method

Description

CalculateBoundsCalculates the bounding box from the given array of positions and the transformation matrix.
CalculateFrustumPlanesCalculates frustum planes.
TestPlanesAABBReturns true if bounds are inside the plane array.
TryCreatePlaneFromPolygonGeometryUtility.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.