Skip to content

Commit

Permalink
Document properties set by NearestPointOnLine on returned Point (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
Leffe108 authored Jan 25, 2024
1 parent bbccfb3 commit c3537d6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/src/nearest_point_on_line.dart
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,13 @@ _NearestMulti? _nearestPointOnMultiLine(
}

/// Takes a [Point] and a [LineString] and calculates the closest Point on the [LineString].
///
/// The properties of returned [Point] will contain three values:
/// * index: closest point was found on nth line part
/// * dist: distance between [point] and the closest point on line
/// * location: distance along the line between start and the closest point.
///
/// Example:
/// ```dart
/// var line = LineString(
/// coordinates: [
Expand Down

0 comments on commit c3537d6

Please sign in to comment.