Remove dependence on gonum

This commit is contained in:
bloeys
2021-11-05 03:37:54 +04:00
parent 6999376c6b
commit 8f03c11314
11 changed files with 308 additions and 502 deletions

27
main_test.go Executable file
View File

@ -0,0 +1,27 @@
package main
import (
"testing"
"github.com/bloeys/gglm/gglm"
)
func BenchmarkVec3Add(b *testing.B) {
v1 := gglm.NewMat4Id()
v2 := gglm.NewMat4Id()
for i := 0; i < b.N; i++ {
gglm.AddMat4(v1, v2)
}
}
func BenchmarkVec3Add2(b *testing.B) {
v1 := gglm.NewMat4Id()
v2 := gglm.NewMat4Id()
for i := 0; i < b.N; i++ {
v1.Add(v2)
}
}