package
0.1.0
Repository: https://github.com/go-spatial/geom.git
Documentation: pkg.go.dev

# Packages

# Functions

AreLinesColinear check if the two lines are colinear based on the slope formula.
DistanceToLineSegment calculates the distance from point p to line segment v, w.
IsPointOnLine checks if pt is on the lines l1, l2 by checking slope and intersect form.
IsPointOnLineSegment checks if pt is on the line segment (seg).
LineIntersect find the intersection point (x,y) between two lines if there is one.
LineIntersectBigFloat find the intersection point (x,y) between two lines if there is one.
PerpendicularDistance provides the distance between a line and a point in Euclidean space.
PointDistance returns the euclidean distance between two points.
PointDistance2 returns the euclidean distance between two points squared.
PointOnLineAt will return a point on the given line at the distance from the origin of the line.
PointsCentriod returns the center of the given pts.
SegmentIntersect will find the intersection point (x,y) between two lines if there is one.
Simplify will simplify the provided geometry using the provided simplifer.
Slope — finds the Slope of a line.

# Constants

Experimental testing produced this result.
Rad is the factor to go from pi to radians.
Unknown is the default if it cannot be determined in/outside.

# Interfaces

Simplifer is an interface for Simplifying geometries.

# Type aliases

Label is the the label for the triangle.
PointLineDistanceFunc is the abstract method to get the distance from point to a line depending on projection.