modulepackage
0.0.0-20201113214756-a580eef09e33
Repository: https://github.com/mandelag/gts.git
Documentation: pkg.go.dev
# README
gts
Go implementation for JTS library algorithms. Currently only support the Point-in-Linear Ring algorithm.
For its geometry store, it uses (highly-coupled to) twpayne's go-geom library.
# Functions
GetOrientation get the orientation in the direction of p1 to p2.
LocatePointInLinearRing checks whether a point is inside a linear ring or not.
NewRayCrossingCounter creates new RayCrossingCounter TODO.
SumDeterminant get determinant and its sum the sum can be used to specify detect precission threshold determined by b1 to b2.
# Constants
Boundary implies the geometry is at other geometry.
Clockwise orientation.
Collinear orientation.
CounterClockwise orientation.
Exterior implies the geometry is outside other geometry.
Interior implies the geometry is inside other geometry.
Left is an alias for CounterClockwise orientatation.
None should be the default value for Location.
Right is an alias for Clockwise orientation.
Straight is an alias for Collinear orientation.
# Structs
RayCrossingCounter stores state ..
# Type aliases
Location represents relationship between two geometry TODO streamline docs to align with JTS.
Orientation represents an orientation.