package
0.0.0-20241116165817-883d5d7d379c
Repository: https://github.com/ddkwork/toolbox.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

LineIntersection determines the intersection of two lines, if any.
NewHorizontalInsets creates a new Insets whose left and right edges have the specified value.
NewIdentityMatrix2D creates a new identity transformation 2D matrix.
NewPoint creates a new Point.
NewPointPtr creates a new *Point.
NewRect creates a new Rect.
NewRectPtr creates a new *Rect.
NewRotationByDegreesMatrix2D creates a new 2D matrix that rotates by 'degrees'.
NewRotationMatrix2D creates a new 2D matrix that rotates by 'radians'.
NewScaleMatrix2D creates a new 2D matrix that scales by 'sx' and 'sy'.
NewSize creates a new Size.
NewSizePtr creates a new *Size.
NewTranslationMatrix2D creates a new 2D matrix that translates by 'tx' and 'ty'.
NewUniformInsets creates a new Insets whose edges all have the same value.
NewVerticalInsets creates a new Insets whose top and bottom edges have the specified value.
PointSegmentDistance returns the distance from a point to a line segment.
PointSegmentDistanceSquared returns the square of the distance from a point to a line segment.

# Structs

Insets defines margins on each side of a rectangle.
Matrix2D provides a 2D matrix.
Point defines a location.
Rect defines a rectangle.
Size defines a width and height.