Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetIntersection ¶
func GetIntersection(line1End1, line1End2, line2End1, line2End2 geom.Coord) (geom.Coord, error)
GetIntersection Computes the (approximate) intersection point between two line segments using homogeneous coordinates.
Note that this algorithm is not numerically stable; i.e. it can produce intersection points which lie outside the envelope of the line segments themselves. In order to increase the precision of the calculation input points should be normalized before passing them to this routine.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.