package
0.0.0-20240502073936-1137f6adf7e9
Repository: https://github.com/ungerik/go3d.git
Documentation: pkg.go.dev

# Functions

Add returns the sum of two vectors.
Angle returns the angle between two vectors.
Cross returns the cross product of two vectors.
Dot returns the dot product of two (dived by w) vectors.
Dot4 returns the 4 element vdot product of two vectors.
From copies a T from a generic.T implementation.
FromVec3 returns a vector with the first 3 components copied from a vec3.T.
Interpolate interpolates between a and b at t (0,1).
Parse parses T from a string.
Sub returns the difference of two vectors.

# Constants

# Variables

Black holds the color black.
Blue holds the color blue.
Green holds the color green.
MaxVal holds a vector with the highest possible component values.
MinVal holds a vector with the smallest possible component values.
Red holds the color red.
UnitW holds a vector with W set to one.
UnitXW holds a vector with X and W set to one.
UnitXYZW holds a vector with X, Y, Z, W set to one.
UnitYW holds a vector with Y and W set to one.
UnitZW holds a vector with Z and W set to one.
White holds the color white.
Zero holds a zero vector.

# Type aliases

T represents a 4 component vector.