Trait geo::algorithm::euclidean_length::EuclideanLength [−][src]
pub trait EuclideanLength<T, RHS = Self> {
fn euclidean_length(&self) -> T;
}
Expand description
Calculation of the length
Required methods
fn euclidean_length(&self) -> T
fn euclidean_length(&self) -> T
Calculation of the length of a Line
Examples
use geo::algorithm::euclidean_length::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(),
)