Skip to content

Commit 1232f08

Browse files
committed
update LineStringCurve occurrences in PlanarLineStringCurve
1 parent 66c052d commit 1232f08

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/curves.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ mod tests {
717717
#[test]
718718
fn spherical_intersect_segment() {
719719
// Note: following tests have been computed with a maximum length of curve of 100m, otherwise the curve is densified.
720-
720+
721721
// Intersection
722722
let paris_to_new_york = SphericalLineStringCurve::new(line_string![(x: PARIS_LON, y: PARIS_LAT), (x: NEW_YORK_LON, y: NEW_YORK_LAT)], 1.);
723723
let segment = Line::new(coord! {x: -36.76627263796084, y: 69.72980545457074}, coord! {x: -53.52127629098692, y: 15.34337895024332});
@@ -728,7 +728,7 @@ mod tests {
728728
assert!(paris_to_new_york.intersect_segment(segment).is_none());
729729

730730
// TODO: Collinear
731-
// Notes:
731+
// Notes:
732732
// - because of the haversine densification, the geometry is slightly different and includes more points
733733
// than before, thus creating intersection(s) point(s).
734734
// - is very rare in reality

src/lrs.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -563,19 +563,19 @@ impl<CurveImpl: Curve> Lrs<CurveImpl> {
563563
mod tests {
564564
use geo::line_string;
565565

566-
use crate::curves::LineStringCurve;
566+
use crate::curves::PlanarLineStringCurve;
567567

568568
use super::*;
569569

570-
fn lrs() -> Lrs<LineStringCurve> {
570+
fn lrs() -> Lrs<PlanarLineStringCurve> {
571571
let traversal = Traversal {
572-
curve: LineStringCurve::new(line_string![(x: 0., y:0.), (x: 200., y:0.)], 1.),
572+
curve: PlanarLineStringCurve::new(line_string![(x: 0., y:0.), (x: 200., y:0.)], 1.),
573573
id: "curve".to_owned(),
574574
lrms: vec![LrmHandle(0), LrmHandle(1)],
575575
};
576576

577577
let traversal2 = Traversal {
578-
curve: LineStringCurve::new(line_string![(x: 0., y:-1.), (x: 200., y:-1.)], 1.),
578+
curve: PlanarLineStringCurve::new(line_string![(x: 0., y:-1.), (x: 200., y:-1.)], 1.),
579579
id: "curve".to_owned(),
580580
lrms: vec![LrmHandle(1)],
581581
};

0 commit comments

Comments
 (0)