logo
pub trait EuclideanLength<T, RHS = Self> {
    fn euclidean_length(&self) -> T;
}
Expand description

Calculation of the length

Required Methods

Calculation of the length of a Line

Examples
use geo::EuclideanLength;
use geo::line_string;

let line_string = line_string![
    (x: 40.02f64, y: 116.34),
    (x: 42.02f64, y: 116.34),
];

assert_eq!(
    2.,
    line_string.euclidean_length(),
)

Implementors