Skip to content

Commit fb0e2cf

Browse files
ReinhardBiegelIntechpmai
authored andcommitted
Clarify T coordinate definition in case of missing T axes intersection
Signed-off-by: Reinhard Biegel <reinhard.biegel@in-tech.com>
1 parent 3c5c3a7 commit fb0e2cf

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

osi_referenceline.proto

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,11 @@ message ReferenceLine
9191
// and a projected point (P_proj) on the polyline. The T axis (projecting
9292
// axis) is the line going through P and the intersection point (I). I is
9393
// defined as the intersection of both T axes of two consecutive
94-
// ReferenceLinePoints (see example and image below for illustration). The T
95-
// coordinate of the point in question is then defined as
94+
// ReferenceLinePoints (see example and image below for illustration). If
95+
// both T axes of the neighboring ReferenceLinePoint are parallel (so no
96+
// intersection point exists), the resulting T axis direction is equal to
97+
// the T axis of these ReferenceLinePoints.
98+
// The T coordinate of the point in question is then defined as
9699
// <code>hypot(P.X-P_proj.X,P.Y-P_proj.Y)</code>. The projected point P_proj
97100
// might either be on a line segment or at an edge between two line segments.
98101
// The distance is positive if the point is left of the polyline (in
@@ -129,13 +132,14 @@ message ReferenceLine
129132
// and two points (P1 and P2) not part of the reference line.
130133
//
131134
// Calculation of ST for P1:
132-
// - Calculate the instersection point I of the T axes of R0 and R1.
135+
// - Calculate the intersection point I of the T axes of R0 and R1.
133136
// - As P1 lies in the sector defined by these T axes it is considered part
134137
// of the reference line section between R0 and R1.
135138
// - The point P1 is projected onto the line segment [R0, R1] via the
136139
// straight line through I (by calculating the intersection of the line
137140
// segment and the projection axis), resulting in point P1_proj.
138-
// If the T axes are parallel, a simple orthogonal projection is used.
141+
// If the T axes are parallel, projection is applied in the direction of
142+
// these axes.
139143
// - The S coordinate of P1 is the S coordinate of P1_proj
140144
// - The T coordinate of P1 is the signed Euclidean distance to P1_proj.
141145
//

0 commit comments

Comments
 (0)