UnityEngine.GeometryUtility.CalculateFrustumPlanes C# (CSharp) Method

CalculateFrustumPlanes() public static method

Calculates frustum planes.

public static CalculateFrustumPlanes ( Matrix4x4 worldToProjectionMatrix ) : UnityEngine.Plane[]
worldToProjectionMatrix Matrix4x4
return UnityEngine.Plane[]
        public static Plane[] CalculateFrustumPlanes(Matrix4x4 worldToProjectionMatrix)
        {
            Plane[] planes = new Plane[6];
            Internal_ExtractPlanes(planes, worldToProjectionMatrix);
            return planes;
        }

Same methods

GeometryUtility::CalculateFrustumPlanes ( Camera camera ) : UnityEngine.Plane[]

Usage Example

Example #1
0
 public static void CalculateFrustumPlanes(Camera camera, Plane[] planes)
 {
     GeometryUtility.CalculateFrustumPlanes(camera.projectionMatrix * camera.worldToCameraMatrix, planes);
 }
All Usage Examples Of UnityEngine.GeometryUtility::CalculateFrustumPlanes