[−][src]Trait rust_3d::HasDistanceTo
HasDistanceTo trait used for types which have a defined distance towards another T.
Implementing HasDistanceTo
Required methods
fn sqr_distance(&self, other: &T) -> NonNegative
Should return the sqr distance to other
Provided methods
fn distance(&self, other: &T) -> NonNegative
The distance to other
Implementors
impl HasDistanceTo<BoundingBox2D> for BoundingBox2D
[src]
fn sqr_distance(&self, other: &BoundingBox2D) -> NonNegative
[src]
impl HasDistanceTo<BoundingBox3D> for BoundingBox3D
[src]
fn sqr_distance(&self, other: &BoundingBox3D) -> NonNegative
[src]
impl<P> HasDistanceTo<P> for dyn Is2D where
P: Is2D,
[src]
P: Is2D,
fn sqr_distance(&self, other: &P) -> NonNegative
[src]
impl<P> HasDistanceTo<P> for dyn Is3D where
P: Is3D,
[src]
P: Is3D,