C# Класс UnityEngine.GeometryUtility

Utility class for common geometric functions.

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
CalculateBounds ( Vector3 positions, Matrix4x4 transform ) : Bounds

Calculates a bounding box given an array of positions and a transformation matrix.

CalculateFrustumPlanes ( Camera camera ) : UnityEngine.Plane[]

Calculates frustum planes.

CalculateFrustumPlanes ( Matrix4x4 worldToProjectionMatrix ) : UnityEngine.Plane[]

Calculates frustum planes.

TestPlanesAABB ( Plane planes, Bounds bounds ) : bool

Returns true if bounds are inside the plane array.

Приватные методы

Метод Описание
INTERNAL_CALL_CalculateBounds ( Vector3 positions, Matrix4x4 &transform, Bounds &value ) : void
INTERNAL_CALL_Internal_ExtractPlanes ( Plane planes, Matrix4x4 &worldToProjectionMatrix ) : void
INTERNAL_CALL_TestPlanesAABB ( Plane planes, Bounds &bounds ) : bool
Internal_ExtractPlanes ( Plane planes, Matrix4x4 worldToProjectionMatrix ) : void

Описание методов

CalculateBounds() публичный статический Метод

Calculates a bounding box given an array of positions and a transformation matrix.

public static CalculateBounds ( Vector3 positions, Matrix4x4 transform ) : Bounds
positions Vector3
transform Matrix4x4
Результат Bounds

CalculateFrustumPlanes() публичный статический Метод

Calculates frustum planes.

public static CalculateFrustumPlanes ( Camera camera ) : UnityEngine.Plane[]
camera Camera
Результат UnityEngine.Plane[]

CalculateFrustumPlanes() публичный статический Метод

Calculates frustum planes.

public static CalculateFrustumPlanes ( Matrix4x4 worldToProjectionMatrix ) : UnityEngine.Plane[]
worldToProjectionMatrix Matrix4x4
Результат UnityEngine.Plane[]

TestPlanesAABB() публичный статический Метод

Returns true if bounds are inside the plane array.

public static TestPlanesAABB ( Plane planes, Bounds bounds ) : bool
planes Plane
bounds Bounds
Результат bool