pub struct AabbDensityField {
pub aabb: Aabb<Scalar>,
pub density: Scalar,
}Fields§
§aabb: Aabb<Scalar>§density: ScalarTrait Implementations§
Source§impl DensityField for AabbDensityField
impl DensityField for AabbDensityField
Source§fn aabb(&self, _: &BodyAccessInfo) -> Aabb<Scalar>
fn aabb(&self, _: &BodyAccessInfo) -> Aabb<Scalar>
Returns the AABB that contains the density field.
Source§fn density_at_point(&self, point: Vec3<Scalar>, _: &BodyAccessInfo) -> Scalar
fn density_at_point(&self, point: Vec3<Scalar>, _: &BodyAccessInfo) -> Scalar
Returns the precise density at the given point.
Reported densities are useful for narrow area queries. Read more
Source§fn density_at_region(
&self,
region: Aabb<Scalar>,
_: &BodyAccessInfo,
) -> DensityRange
fn density_at_region( &self, region: Aabb<Scalar>, _: &BodyAccessInfo, ) -> DensityRange
Returns the approximate minimum and maximum density at the given region.
Reported densities are useful for broad area queries. Read more
Auto Trait Implementations§
impl Freeze for AabbDensityField
impl RefUnwindSafe for AabbDensityField
impl Send for AabbDensityField
impl Sync for AabbDensityField
impl Unpin for AabbDensityField
impl UnsafeUnpin for AabbDensityField
impl UnwindSafe for AabbDensityField
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