pub trait Along<P: NewXY> {
// Required method
fn along_line(&self, distance: f64, radius: Option<f64>) -> P;
}Expand description
Given a linestring in degrees and a distance, create a Point along the line
If no radius is provided, defaults to the Earth’s radius
NOTE: If your feature/geometry isn’t a line, the point returned will have an x and y of f64::NAN
This trait is implemented for:
FeatureGeometryLineStringGeometryLineStringVectorFeatureVectorGeometryVectorLineStringGeometryVectorLineStringFeatures&[P]where P implementsGetXYand [GetZ]
And all specific geometries of the above enums
If you want to work with the function directly use along_line
Required Methods§
Sourcefn along_line(&self, distance: f64, radius: Option<f64>) -> P
fn along_line(&self, distance: f64, radius: Option<f64>) -> P
Get the total euclidean distance of a line or lines