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