Struct cgmath_culling::FrustumCuller
[−]
[src]
pub struct FrustumCuller<S> { /* fields omitted */ }
Methods
impl<S: BaseFloat> FrustumCuller<S>
[src]
pub fn from_perspective(perspective: Perspective<S>) -> Self
[src]
pub fn from_perspective_fov(perspective: PerspectiveFov<S>) -> Self
[src]
pub fn from_ortho(ortho: Ortho<S>) -> Self
[src]
pub fn from_matrix(m: Matrix4<S>) -> Self
[src]
pub fn test_point(&self, point: Vector3<S>) -> bool
[src]
Test wether a 3D point lies inside of the frustum
pub fn test_sphere(&self, center: Vector3<S>, radius: S) -> bool
[src]
Tests wether a sphere lies inside the frustum.
This method doesn't distinguish between total and partial intersection with the frustum. In
order to make this distinction, use the intersect_sphere
method instead.
pub fn test_aab(&self, min: Vector3<S>, max: Vector3<S>) -> bool
[src]
Test wether an axis aligned box, defined by is minimum (min
) and maximum (max
) points,
lies inside or outside the frustum.
This method won't distinguish between partial or total intersection. In order to obtain
this information, use the intersect_aab
method instead.
pub fn intersect_sphere(&self, center: Vector3<S>, radius: S) -> Intersection
[src]
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 intersect_aab(&self, min: Vector3<S>, max: Vector3<S>) -> Intersection
[src]
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,