de.rico.engine.camera.culling
Class FrustumPlane

java.lang.Object
  extended by de.rico.engine.geometry.Plane
      extended by de.rico.engine.camera.culling.FrustumPlane

public class FrustumPlane
extends Plane

This class represents a plane of the viewing frustum that can be used for the frustum culling technique.

Author:
Frank Bruns

Constructor Summary
FrustumPlane()
          Creates a new frustum plane with all values initially 0f.
 
Method Summary
 void setPlaneCoefficients(float a, float b, float c, float d)
          Sets the coefficients of the plane equation to the specified values for a, b, c and d.
 
Methods inherited from class de.rico.engine.geometry.Plane
getA, getB, getC, getD, setA, setB, setC, setD
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FrustumPlane

public FrustumPlane()
Creates a new frustum plane with all values initially 0f.

Method Detail

setPlaneCoefficients

public void setPlaneCoefficients(float a,
                                 float b,
                                 float c,
                                 float d)
Sets the coefficients of the plane equation to the specified values for a, b, c and d. The values then get normalized, because that is neccessary for frustum culling.

Overrides:
setPlaneCoefficients in class Plane
Parameters:
a - A value of the plane equation
b - B value of the plane equation
c - C value of the plane equation
d - D value of the plane equation