Documentation
¶
Index ¶
- func GetClosestPointToSegment(point vector2.Vector2, segment [2]vector2.Vector2) vector2.Vector2
- func GetClosestPointToSegmentUncapped(point vector2.Vector2, segment [2]vector2.Vector2) vector2.Vector2
- func GetClosestPointsBetweenSegments(p1, q1, p2, q2 vector2.Vector2) float64
- func GetDistanceSquaredToSegment(point vector2.Vector2, segment [2]vector2.Vector2) float64
- func GetDistanceToSegment(point vector2.Vector2, segment [2]vector2.Vector2) float64
- func IsPolygonClockwise(polygon []vector2.Vector2) bool
- func LineIntersectsLine(from_a, dir_a, from_b, dir_b vector2.Vector2) vector2.Vector2
- func OffsetPolygon(polygon []vector2.Vector2, delta float64, joinType JoinType) [][]vector2.Vector2
- func OffsetPolyline(polygon []vector2.Vector2, delta float64, joinType JoinType, endType EndType) [][]vector2.Vector2
- func SegmentIntersectsSegment(from_a, to_a, from_b, to_b vector2.Vector2) vector2.Vector2
- type EndType
- type JoinType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDistanceToSegment ¶
func IsPolygonClockwise ¶
IsPolygonClockwise determines if the given polygon points are in a clockwise order.
func LineIntersectsLine ¶
func OffsetPolygon ¶
func OffsetPolyline ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.