From 9a76d7b965f443389f631a3b61fde36223dc690b Mon Sep 17 00:00:00 2001 From: William Linna Date: Sun, 20 Nov 2022 11:46:25 +0800 Subject: [PATCH] Clarify doc comments of SegmentsIntersection::Point Point-intersection only has only one intersection point, so the original doc comments "Location of the first intersection point on the first segment." and Location of the second intersection point on the second segment" are confusing. It seems like they were copied from the Segment-intersection where those descriptions make sense. --- src/utils/segments_intersection.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/segments_intersection.rs b/src/utils/segments_intersection.rs index 2c7b1a21..e508c137 100644 --- a/src/utils/segments_intersection.rs +++ b/src/utils/segments_intersection.rs @@ -10,9 +10,9 @@ use na::ComplexField; pub enum SegmentsIntersection { /// Single point of intersection. Point { - /// Location of the first intersection point on the first segment. + /// Location of the intersection point on the first segment. loc1: SegmentPointLocation, - /// Location of the second intersection point on the second segment. + /// Location of the intersection point on the second segment. loc2: SegmentPointLocation, }, /// Intersection along a segment (when both segments are collinear).