The JTS Topology Suite is an external project that GeoTools uses to provide an implementation of the Geometry data structure. The major benefit is the numerically stable geometry operations as a result of years of dedicated effort.
GeoTools is all about implementing spatial solutions, and we do our very best to follow a don’t invent here policy (rather than get off topic). The excellent JTS Topology Suite project offers an implementation of Geometry which we use throughout our library.
The GeoTools provides some help for working with JTS:
gt-main offers helper classes (such as JTS and Geometries) and extends JTS with a CurvedGeometryFactory for working with curves along with helper classes to translate Geometry into a Java Shape for display
<dependency> <groupId>org.locationtech</groupId> <artifactId>jts</artifactId> <version>1.13</version> </dependency>