Struct rust_3d::filters::FilterSphere [] [src]

pub struct FilterSphere { /* fields omitted */ }

FilterSphere, a sphere filter within 3D space

Methods

impl FilterSphere
[src]

Creates a new FilterSphere with the given parameters

Trait Implementations

impl Debug for FilterSphere
[src]

Formats the value using the given formatter.

impl PartialEq for FilterSphere
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl PartialOrd for FilterSphere
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Default for FilterSphere
[src]

Returns the "default value" for a type. Read more

impl Clone for FilterSphere
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Hash for FilterSphere
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Eq for FilterSphere
[src]

impl Ord for FilterSphere
[src]

This method returns an Ordering between self and other. Read more

🔬 This is a nightly-only experimental API. (ord_max_min)

Compares and returns the maximum of two values. Read more

🔬 This is a nightly-only experimental API. (ord_max_min)

Compares and returns the minimum of two values. Read more

impl IsND for FilterSphere
[src]

Should return the number of dimensions. E.g. 2 for points in 2D space, 3 for points in 3D space etc.

Should return the value of a given dimensions. E.g. for 2D position with x = 4.3, y = 1.8 the result for dimension = 1 should be 1.8

impl Is3D for FilterSphere
[src]

Should return the x-coordinate

Should return the y-coordinate

Should return the z-coordinate

Returns the Position as x,y,z tuple

Calculates the dot product with another Is3D

The absolute / length of this position

Calculates the angle to the other Is3D in radians

Transforms the position in a "x y z" string. E.g. "3.72 5.99 1.01"

impl IsBuildableND for FilterSphere
[src]

Should build an object from the correct number of coordinates

Should use the coordinates of another as its own

impl IsBuildable3D for FilterSphere
[src]

Should build an object from x, y and z coordinates

Should use the coordinates of another as its own

Applies a matrix to this

Returns this with normalized values

Creates this from a "x y z" string. E.g. "32.2 14.7 1.90"

impl IsEditableND for FilterSphere
[src]

Should set the coordinate / position at dimension to val

impl IsEditable3D for FilterSphere
[src]

Should set the position in x

Should set the position in y

Should set the position in z

Sets the position from a x, y and z values

Adds the coordinates of other onto this. x = x + other.x ...

Substracts the coordinates of other from this. x = x - other.x ...

Scales the coordinates by applying a factor to all of them

impl HasBoundingBox3D for FilterSphere
[src]

Should return the bounding box as a pair of two points. The first point should be the minimum for all coordinates, the second the maximum for all coordinates

impl<T> IsFilter<T> for FilterSphere where
    T: Is3D
[src]

Should return true if a it passes the filter, otherwise false