Registry / utility / go-gl-mathgl

go-gl-mathgl

JSON →
library1.2.0gogounverified

Package mathgl provides vector and matrix math types for OpenGL graphics programming.

go get github.com/go-gl/mathgl
INSTALL
IMPORT
SIG · GO-GL-MATHGL
G
go-gl-mathgl
utilitygov1.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

mathgl
github.com/go-gl/mathgl

Compute length of a 2D vector

package main import ( "fmt" "github.com/go-gl/mathgl/mgl32" ) func main() { v := mgl32.Vec2{1, 2} fmt.Println(v.Len()) }
Debug
Known issues
gotchaThe root package is not importable; use subpackages like mgl32 or mgl64.
fix
Import github.com/go-gl/mathgl/mgl32 for 32-bit floats.
affects: all
Upgrade
Version history
1.2.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
go-gl-mathgl — go get go-gl-mathgl · libregistry