Table of Contents

Class FrustumUtils

Namespace
Root
Assembly
SPZGameAssembly.dll
public static class FrustumUtils
Inheritance
object
FrustumUtils

Methods

BoundingSphereArea(float3, float, float4x4)

public static float BoundingSphereArea(float3 boundingSphereCenter_W, float boundingSphereRadius, float4x4 worldToCamera)

Parameters

boundingSphereCenter_W float3
boundingSphereRadius float
worldToCamera float4x4

Returns

float

BoundingSphereAreaApproximation(float3, float, float3, float)

public static float BoundingSphereAreaApproximation(float3 boundingSphereCenter_W, float boundingSphereRadius, float3 cameraPosition, float fieldOfViewRadians)

Parameters

boundingSphereCenter_W float3
boundingSphereRadius float
cameraPosition float3
fieldOfViewRadians float

Returns

float

TestPlanesAABB(NativeArray<Plane>, Bounds)

public static bool TestPlanesAABB(NativeArray<Plane> planes, Bounds bounds)

Parameters

planes NativeArray<Plane>
bounds Bounds

Returns

bool