Skip to content

Commit bf54bea

Browse files
committed
Add TestBuilder line trimming function
1 parent 7044dd1 commit bf54bea

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

modules/app/src/main/java/org/locationtech/jtstest/function/LineHandlingFunctions.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -92,15 +92,15 @@ public static Geometry dissolve(Geometry geom)
9292
}
9393

9494
/**
95-
* Clips line A to line B.
96-
* Can also be thought of as the projection of B onto A.
95+
* Trims line A to geometry B.
96+
* Equivalent to the projection of B onto A.
9797
*
98-
* @param a line to clip
99-
* @param b mask line
100-
* @return line A clipped to B
98+
* @param a line to trim
99+
* @param b trimming geometry
100+
* @return line A trimmed to B
101101
*/
102-
@Metadata(description="Clip line A to line B")
103-
public static Geometry clip(Geometry a, Geometry b) {
102+
@Metadata(description="Trim line A to geometry B")
103+
public static Geometry trim(Geometry a, Geometry b) {
104104
return LinearReferencingFunctions.project(a, b);
105105
}
106106

0 commit comments

Comments
 (0)