Struct frustum_query::frustum::Frustum
[−]
[src]
pub struct Frustum { /* fields omitted */ }
Frustum
A data structure for six planes of the view frustum
Methods
impl Frustum
[src]
fn from_modelview_projection(clip: &[f32; 16]) -> Frustum
Create a frustum given the product of the modelview and projection as a float array
fn from_modelview_and_projection(modl: &[f32; 16], proj: &[f32; 16]) -> Frustum
Create a frustum from column major modelview and projection float arrays matrices
fn from_modelview_and_projection_2d(
modl: &[[f32; 4]; 4],
proj: &[[f32; 4]; 4]
) -> Frustum
modl: &[[f32; 4]; 4],
proj: &[[f32; 4]; 4]
) -> Frustum
Create a frustum from 2-dimensional column-major modelview and projection float arrays
fn point_intersecting(&self, x: &f32, y: &f32, z: &f32) -> bool
A point is intersecting the renderable region of the frustum
fn sphere_intersecting(&self, x: &f32, y: &f32, z: &f32, r: &f32) -> bool
A sphere is intersecting the renderable region of the frustum