Enum style::values::distance::SquaredDistance [] [src]

pub enum SquaredDistance {
    Sqrt(f64),
    Value(f64),
}

A distance between two animatable values.

Variants

Represented as the square root of the squared distance.

Represented as the squared distance itself.

Methods

impl SquaredDistance
[src]

[src]

Returns the square root of this squared distance.

Trait Implementations

impl Clone for SquaredDistance
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for SquaredDistance
[src]

impl Debug for SquaredDistance
[src]

[src]

Formats the value using the given formatter. Read more

impl From<SquaredDistance> for f64
[src]

[src]

Performs the conversion.

impl Add for SquaredDistance
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl Sum for SquaredDistance
[src]

[src]

Method which takes an iterator and generates Self from the elements by "summing up" the items. Read more