9 this->frustum = frustum;
22 this->frustum = frustum;
50 planes[topPlane].
setPlane( nearTopRight, nearTopLeft, farTopLeft );
51 planes[bottomPlane].
setPlane( nearBottomLeft, nearBottomRight, farBottomRight );
52 planes[leftPlane].
setPlane( nearTopLeft, nearBottomRight, farBottomLeft );
53 planes[rightPlane].
setPlane( nearBottomRight, nearTopRight, farBottomRight );
54 planes[nearPlane].
setPlane( nearTopLeft, nearTopRight, nearBottomRight );
55 planes[farPlane].
setPlane( farTopRight, farTopLeft, farBottomLeft );
68 for(
int i=0; i < 6; i++) {
69 if (planes[i].distance(p) < 0)
86 for(
int i=0; i < 6; i++ ) {
88 if( distance < -radius )
90 else if( distance < radius )
104 float dist1 = planes[topPlane].
distance( p );
105 float dist2 = planes[bottomPlane].
distance( p );
122 float dist1 = planes[rightPlane].
distance( p );
123 float dist2 = planes[leftPlane].
distance( p );
141 if( dist < frustum.nearDist || dist > frustum.
farDist )
158 if( dist < frustum.nearDist || dist > frustum.
farDist )
161 float val = 2 * tan( frustum.
fov * ANGLE2DEG * 0.5 ) * dist;