Class Culling
Syntax
public static class Culling
Fields
EdgeTable
Declaration
public static readonly int[] EdgeTable
Field Value
Methods
AxisAlignedToWorldBounds(float4x4, AABB, out WorldBounds)
Declaration
public static void AxisAlignedToWorldBounds(in float4x4 tx, in AABB aaBounds, out WorldBounds wBounds)
Parameters
Type |
Name |
Description |
Unity.Mathematics.float4x4 |
tx |
|
AABB |
aaBounds |
|
WorldBounds |
wBounds |
|
Cull(WorldBoundingSphere, float4)
Declaration
public static Culling.CullingResult Cull(in WorldBoundingSphere bounds, float4 plane)
Parameters
Returns
Cull(WorldBoundingSphere, Frustum)
Declaration
public static Culling.CullingResult Cull(in WorldBoundingSphere bounds, in Frustum f)
Parameters
Returns
Cull(WorldBounds, Frustum)
Declaration
public static Culling.CullingResult Cull(in WorldBounds bounds, in Frustum f)
Parameters
Returns
GrowBounds(ref float3, ref float3, WorldBounds)
Declaration
public static void GrowBounds(ref float3 bbMin, ref float3 bbMax, in WorldBounds wb)
Parameters
Type |
Name |
Description |
Unity.Mathematics.float3 |
bbMin |
|
Unity.Mathematics.float3 |
bbMax |
|
WorldBounds |
wb |
|
IsCulled(WorldBounds, Frustum)
Declaration
public static bool IsCulled(in WorldBounds bounds, in Frustum f)
Parameters
Returns
MergeBounds(ref WorldBounds, ref WorldBounds)
Declaration
public static void MergeBounds(ref WorldBounds bounds1, ref WorldBounds bounds2)
Parameters
MergeSpheres(ref float4, float4)
Declaration
public static void MergeSpheres(ref float4 sphere1, float4 sphere2)
Parameters
Type |
Name |
Description |
Unity.Mathematics.float4 |
sphere1 |
|
Unity.Mathematics.float4 |
sphere2 |
|
PlaneFromTri(float3, float3, float3)
Declaration
public static float4 PlaneFromTri(float3 p0, float3 p1, float3 p2)
Parameters
Type |
Name |
Description |
Unity.Mathematics.float3 |
p0 |
|
Unity.Mathematics.float3 |
p1 |
|
Unity.Mathematics.float3 |
p2 |
|
Returns
Type |
Description |
Unity.Mathematics.float4 |
|
PointInBounds(WorldBounds, float3)
Declaration
public static bool PointInBounds(in WorldBounds bounds, float3 p)
Parameters
Type |
Name |
Description |
WorldBounds |
bounds |
|
Unity.Mathematics.float3 |
p |
|
Returns
SelectCoordsMinMax(float3, float3, Int32)
Declaration
public static float3 SelectCoordsMinMax(float3 cMin, float3 cMax, int mask)
Parameters
Type |
Name |
Description |
Unity.Mathematics.float3 |
cMin |
|
Unity.Mathematics.float3 |
cMax |
|
Int32 |
mask |
|
Returns
Type |
Description |
Unity.Mathematics.float3 |
|
SphereInSphere(float4, float4)
Declaration
public static int SphereInSphere(float4 sphere1, float4 sphere2)
Parameters
Type |
Name |
Description |
Unity.Mathematics.float4 |
sphere1 |
|
Unity.Mathematics.float4 |
sphere2 |
|
Returns
Declaration
public static void TransformWorldBounds(in float4x4 tx, ref WorldBounds b)
Parameters
Type |
Name |
Description |
Unity.Mathematics.float4x4 |
tx |
|
WorldBounds |
b |
|
WorldBoundsToAxisAligned(WorldBounds, out AABB)
Declaration
public static void WorldBoundsToAxisAligned(in WorldBounds wBounds, out AABB aab)
Parameters