C# Class ManicDigger.FrustumCulling

Inheritance: IFrustumCulling
显示文件 Open project: GlennMR/800Craft-Client Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
CalcFrustumEquations ( ) : void

Calculating the frustum planes.

From the current OpenGL modelview and projection matrices, calculate the frustum plane equations (Ax+By+Cz+D=0, n=(A,B,C)) The equations can then be used to see on which side points are.

SphereInFrustum ( float x, float y, float z, float radius ) : bool

Method Details

CalcFrustumEquations() public method

Calculating the frustum planes.
From the current OpenGL modelview and projection matrices, calculate the frustum plane equations (Ax+By+Cz+D=0, n=(A,B,C)) The equations can then be used to see on which side points are.
public CalcFrustumEquations ( ) : void
return void

SphereInFrustum() public method

public SphereInFrustum ( float x, float y, float z, float radius ) : bool
x float
y float
z float
radius float
return bool