Struct cgmath_culling::FrustumCuller
[−]
[src]
pub struct FrustumCuller<S> { /* fields omitted */ }
Methods
impl<S: BaseFloat> FrustumCuller<S>
[src]
pub fn new() -> Self
[src]
Creates an identity frustum culler. This is equivalent to calling the from_matrix
method
passing an identity matrix.
pub fn from_perspective(perspective: Perspective<S>) -> Self
[src]
Creates a frustum culler from a given perspective frustum configuration.
pub fn from_perspective_fov(perspective: PerspectiveFov<S>) -> Self
[src]
Creates a frustum culler from a given PerspectiveFov
configuration.
pub fn from_ortho(ortho: Ortho<S>) -> Self
[src]
pub fn from_matrix(m: Matrix4<S>) -> Self
[src]
Creates a FrustumCuller
from an arbitrary matrix, from which the frustum planes are
computed.
pub fn test_point(&self, point: Vector3<S>) -> Intersection
[src]
Test wether a 3D point lies inside of the frustum
pub fn test_sphere<T>(&self, sphere: T) -> Intersection where
T: Into<Sphere<S>>,
[src]
T: Into<Sphere<S>>,
Returns the result of testing the intersection of the frustum with a sphere, defined by a
center point (center
) and a radius (radius
).
This method will distinguish between a partial intersection and a total intersection.
pub fn test_bounding_box<T>(&self, aab: T) -> Intersection where
T: Into<BoundingBox<S>>,
[src]
T: Into<BoundingBox<S>>,
Tests wether a given axis aligned bounding box intersects with the Frustum. There is a
distinction between partial intersection and full intersection, which is given by the
values of the Intersection
enum.
Trait Implementations
impl<S: Debug> Debug for FrustumCuller<S>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<S: Copy> Copy for FrustumCuller<S>
[src]
impl<S: Clone> Clone for FrustumCuller<S>
[src]
fn clone(&self) -> FrustumCuller<S>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<S: PartialEq> PartialEq for FrustumCuller<S>
[src]
fn eq(&self, __arg_0: &FrustumCuller<S>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &FrustumCuller<S>) -> bool
[src]
This method tests for !=
.
Auto Trait Implementations
impl<S> Send for FrustumCuller<S> where
S: Send,
S: Send,
impl<S> Sync for FrustumCuller<S> where
S: Sync,
S: Sync,