[][src]Struct zvxryb_broadphase::RayTestGeometry

pub struct RayTestGeometry<Point> where
    Point: EuclideanSpace<Scalar = f32>, 
{ /* fields omitted */ }

A type implementing TestGeometry for rays

Methods

impl<Point> RayTestGeometry<Point> where
    Point: EuclideanSpace<Scalar = f32> + VecDim, 
[src]

pub fn with_system_bounds(
    system_bounds: Bounds<Point>,
    origin: Point,
    direction: Point::Diff,
    range_min: f32,
    range_max: f32
) -> Self where
    Point: Debug,
    Point::Diff: ElementWise + Index<usize, Output = f32> + Debug
[src]

Construct ray test geometry

range_min and range_max may be infinity or negative infinity, in which case the ray will be clamped to system bounds

Trait Implementations

impl<Point: Clone> Clone for RayTestGeometry<Point> where
    Point: EuclideanSpace<Scalar = f32>,
    Point::Diff: Clone
[src]

impl Debug for RayTestGeometry<Point2<f32>>[src]

impl Debug for RayTestGeometry<Point3<f32>>[src]

impl TestGeometry for RayTestGeometry<Point2<f32>>[src]

type SubdivideResult = [Self; 4]

type TestOrder = [usize; 4]

impl TestGeometry for RayTestGeometry<Point3<f32>>[src]

type SubdivideResult = [Self; 8]

type TestOrder = [usize; 8]

Auto Trait Implementations

impl<Point> RefUnwindSafe for RayTestGeometry<Point> where
    Point: RefUnwindSafe,
    <Point as EuclideanSpace>::Diff: RefUnwindSafe

impl<Point> Send for RayTestGeometry<Point> where
    Point: Send,
    <Point as EuclideanSpace>::Diff: Send

impl<Point> Sync for RayTestGeometry<Point> where
    Point: Sync,
    <Point as EuclideanSpace>::Diff: Sync

impl<Point> Unpin for RayTestGeometry<Point> where
    Point: Unpin,
    <Point as EuclideanSpace>::Diff: Unpin

impl<Point> UnwindSafe for RayTestGeometry<Point> where
    Point: UnwindSafe,
    <Point as EuclideanSpace>::Diff: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.