pub struct Cuboid<S> { /* private fields */ }
Expand description
Cuboid primitive.
Have a cached set of corner points to speed up computation.
Implementations§
Trait Implementations§
Source§impl<S> ComputeBound<Aabb3<S>> for Cuboid<S>where
S: BaseFloat,
impl<S> ComputeBound<Aabb3<S>> for Cuboid<S>where
S: BaseFloat,
Source§fn compute_bound(&self) -> Aabb3<S>
fn compute_bound(&self) -> Aabb3<S>
Compute the bounding volume
Source§impl<S> ComputeBound<Sphere<S>> for Cuboid<S>where
S: BaseFloat,
impl<S> ComputeBound<Sphere<S>> for Cuboid<S>where
S: BaseFloat,
Source§fn compute_bound(&self) -> Sphere<S>
fn compute_bound(&self) -> Sphere<S>
Compute the bounding volume
Source§impl<S> Discrete<Ray<S, Point3<S>, Vector3<S>>> for Cuboid<S>where
S: BaseFloat,
impl<S> Discrete<Ray<S, Point3<S>, Vector3<S>>> for Cuboid<S>where
S: BaseFloat,
Source§fn intersects(&self, ray: &Ray3<S>) -> bool
fn intersects(&self, ray: &Ray3<S>) -> bool
Intersection test
Source§impl<S> From<Cuboid<S>> for Primitive3<S>where
S: BaseFloat,
impl<S> From<Cuboid<S>> for Primitive3<S>where
S: BaseFloat,
Source§fn from(cuboid: Cuboid<S>) -> Primitive3<S>
fn from(cuboid: Cuboid<S>) -> Primitive3<S>
Converts to this type from the input type.
impl<S> StructuralPartialEq for Cuboid<S>
Auto Trait Implementations§
impl<S> Freeze for Cuboid<S>where
S: Freeze,
impl<S> RefUnwindSafe for Cuboid<S>where
S: RefUnwindSafe,
impl<S> Send for Cuboid<S>where
S: Send,
impl<S> Sync for Cuboid<S>where
S: Sync,
impl<S> Unpin for Cuboid<S>where
S: Unpin,
impl<S> UnwindSafe for Cuboid<S>where
S: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more