package
0.0.0-20240502073936-1137f6adf7e9
Repository: https://github.com/ungerik/go3d.git
Documentation: pkg.go.dev
# Functions
Add adds the composants of the two vectors and returns a new vector with the sum of the two vectors.
Angle returns the angle value of the (shortest/smallest) angle between the two vectors a and b.
Cosine returns the cosine value of the angle between the two vectors.
Cross returns the "cross product" of two vectors.
Dot returns the dot product of two vectors.
From copies a T from a generic.T implementation.
Interpolate interpolates between a and b at t (0,1).
IsLeftWinding returns if the angle from a to b is left winding.
IsRightWinding returns if the angle from a to b is right winding.
Max returns the component wise maximum of two vectors.
Min returns the component wise minimum of two vectors.
Mul returns the component wise product of two vectors.
Parse parses T from a string.
ParseRect parses a Rect from a string.
PracticallyEquals compares two values if they are equal with each other within a delta tolerance.
Sinus returns the sinus value of the (shortest/smallest) angle between the two vectors a and b.
Sub returns the difference of two vectors.
# Variables
MaxVal holds a vector with the highest possible component values.
MinVal holds a vector with the smallest possible component values.
UnitX holds a vector with X set to one.
UnitXY holds a vector with X and Y set to one.
UnitY holds a vector with Y set to one.
Zero holds a zero vector.
# Type aliases
T represents a 2D vector.