pub struct FilterSphere { /* private fields */ }
Expand description
FilterSphere, a sphere filter within 3D space
Implementations§
Trait Implementations§
Source§impl Clone for FilterSphere
impl Clone for FilterSphere
Source§fn clone(&self) -> FilterSphere
fn clone(&self) -> FilterSphere
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FilterSphere
impl Debug for FilterSphere
Source§impl Default for FilterSphere
impl Default for FilterSphere
Source§fn default() -> FilterSphere
fn default() -> FilterSphere
Returns the “default value” for a type. Read more
Source§impl HasBoundingBox3D for FilterSphere
impl HasBoundingBox3D for FilterSphere
Source§fn bounding_box(&self) -> BoundingBox3D
fn bounding_box(&self) -> BoundingBox3D
Should return the bounding box
Source§impl HasBoundingBox3DMaybe for FilterSphere
impl HasBoundingBox3DMaybe for FilterSphere
Source§fn bounding_box_maybe(&self) -> Result<BoundingBox3D>
fn bounding_box_maybe(&self) -> Result<BoundingBox3D>
Should return the bounding box if it can be calculated
Source§impl Hash for FilterSphere
impl Hash for FilterSphere
Source§impl Is3D for FilterSphere
impl Is3D for FilterSphere
Source§impl IsBuildable3D for FilterSphere
impl IsBuildable3D for FilterSphere
Source§fn from<P>(&mut self, other: &P)where
P: Is3D,
fn from<P>(&mut self, other: &P)where
P: Is3D,
Should use the coordinates of another as its own
Source§fn multiply_m(&self, m: &Matrix4) -> Self
fn multiply_m(&self, m: &Matrix4) -> Self
Applies a matrix to this
Source§fn normalized(&self) -> Result<Self>
fn normalized(&self) -> Result<Self>
Returns this with normalized values
Source§impl IsBuildableND for FilterSphere
impl IsBuildableND for FilterSphere
Source§impl IsEditable3D for FilterSphere
impl IsEditable3D for FilterSphere
Source§fn increase_distance_to_by<P>(&mut self, other: &P, factor: Positive)where
P: Is3D,
fn increase_distance_to_by<P>(&mut self, other: &P, factor: Positive)where
P: Is3D,
Increases distance towards other by factor
Source§fn add<P>(&mut self, other: &P)where
P: Is3D,
fn add<P>(&mut self, other: &P)where
P: Is3D,
Adds the coordinates of other onto this. x = x + other.x …
Source§impl IsEditableND for FilterSphere
impl IsEditableND for FilterSphere
Source§impl<T> IsFilter<T> for FilterSpherewhere
T: Is3D,
impl<T> IsFilter<T> for FilterSpherewhere
T: Is3D,
Source§fn is_allowed(&self, p: &T) -> bool
fn is_allowed(&self, p: &T) -> bool
Should return true if a it passes the filter, otherwise false
Source§impl IsND for FilterSphere
impl IsND for FilterSphere
Source§fn n_dimensions() -> usize
fn n_dimensions() -> usize
Should return the number of dimensions. E.g. 2 for points in 2D space, 3 for points in 3D space etc.
Source§impl IsScalable for FilterSphere
impl IsScalable for FilterSphere
Source§impl Ord for FilterSphere
impl Ord for FilterSphere
Source§fn cmp(&self, other: &FilterSphere) -> Ordering
fn cmp(&self, other: &FilterSphere) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for FilterSphere
impl PartialEq for FilterSphere
Source§impl PartialOrd for FilterSphere
impl PartialOrd for FilterSphere
impl Eq for FilterSphere
impl StructuralPartialEq for FilterSphere
Auto Trait Implementations§
impl Freeze for FilterSphere
impl RefUnwindSafe for FilterSphere
impl Send for FilterSphere
impl Sync for FilterSphere
impl Unpin for FilterSphere
impl UnwindSafe for FilterSphere
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more