{"id":13413662,"url":"https://github.com/technohippy/go-glmatrix","last_synced_at":"2025-07-29T20:35:14.834Z","repository":{"id":54663087,"uuid":"276656482","full_name":"technohippy/go-glmatrix","owner":"technohippy","description":"go-glmatrix is a golang version of glMatrix, which is \"designed to perform vector and matrix operations stupidly fast\".","archived":false,"fork":false,"pushed_at":"2021-02-05T02:33:06.000Z","size":158,"stargazers_count":11,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-31T18:32:19.652Z","etag":null,"topics":["3d","matrix","vector"],"latest_commit_sha":null,"homepage":"https://github.com/technohippy/go-glmatrix","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/technohippy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-02T13:40:40.000Z","updated_at":"2024-09-15T07:44:51.000Z","dependencies_parsed_at":"2022-08-13T23:10:43.292Z","dependency_job_id":null,"html_url":"https://github.com/technohippy/go-glmatrix","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/technohippy/go-glmatrix","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technohippy%2Fgo-glmatrix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technohippy%2Fgo-glmatrix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technohippy%2Fgo-glmatrix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technohippy%2Fgo-glmatrix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/technohippy","download_url":"https://codeload.github.com/technohippy/go-glmatrix/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technohippy%2Fgo-glmatrix/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267754941,"owners_count":24139438,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["3d","matrix","vector"],"created_at":"2024-07-30T20:01:45.746Z","updated_at":"2025-07-29T20:35:14.786Z","avatar_url":"https://github.com/technohippy.png","language":"Go","readme":"[![Mentioned in Awesome Go](https://awesome.re/mentioned-badge.svg)](https://github.com/avelino/awesome-go)  \n[![Build Status](https://secure.travis-ci.org/technohippy/go-glmatrix.png?branch=master)](http://travis-ci.org/technohippy/go-glmatrix)\n[![Coverage Status](https://coveralls.io/repos/technohippy/go-glmatrix/badge.svg?branch=master)](https://coveralls.io/r/technohippy/go-glmatrix?branch=master)\n[![Go Report Card](https://goreportcard.com/badge/github.com/technohippy/go-glmatrix)](https://goreportcard.com/report/github.com/technohippy/go-glmatrix)\n[![GoDoc](https://godoc.org/github.com/technohippy/go-glmatrix?status.svg)](https://godoc.org/github.com/technohippy/go-glmatrix)\n[![license](https://img.shields.io/badge/license-MIT-4183c4.svg)](https://github.com/technohippy/go-glmatrix/blob/master/LICENSE.txt)\n\n# go-glmatrix\n\ngo-glmatrix is a golang version of [glMatrix](http://glmatrix.net/), which is ``designed to perform vector and matrix operations stupidly fast''.\n\n## Usage\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\tglm \"github.com/technohippy/go-glmatrix\"\n)\n\nfunc main() {\n\t// config\n\trotateQuat := glm.QuatFromValues(1, 2, 3, 4)\n\ttranslateVec3 := glm.Vec3FromValues(1, 2, 3)\n\tscale := []float64{4, 5, 6}\n\trotateOrigin := []float64{7, 8, 9}\n\n\t// construct matrix\n\ttransMat := glm.Mat4Create()\n\tglm.Mat4Identity(transMat)\n\tglm.Mat4Translate(transMat, transMat, translateVec3)\n\tglm.Mat4Translate(transMat, transMat, rotateOrigin)\n\trotateMat := glm.Mat4Create()\n\trotateMat = glm.Mat4FromQuat(rotateMat, rotateQuat)\n\tmatrix := glm.Mat4Multiply(glm.Mat4Create(), transMat, rotateMat)\n\tglm.Mat4Scale(matrix, matrix, scale)\n\tnegativeOrigin := glm.Vec3Negate(glm.Vec3Create(), rotateOrigin)\n\tglm.Mat4Translate(matrix, matrix, negativeOrigin)\n\n\t// transform position\n\tposition := glm.Vec3FromValues(10, 20, 30)\n\tglm.Vec3TransformMat4(position, position, matrix)\n\tfmt.Printf(glm.Vec3Str(position)) // =\u003e vec3(1280, -290, -42)\n}\n```\n\n## Document\n\n- See [https://pkg.go.dev/](https://pkg.go.dev/github.com/technohippy/go-glmatrix)\n- or See [the documentation for glMatrix](http://glmatrix.net/docs/)\n\n## License\n\nMIT","funding_links":[],"categories":["OpenGL","网络相关库","Relational Databases"],"sub_categories":["HTTP客户端","HTTP Clients","OpenGL"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechnohippy%2Fgo-glmatrix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechnohippy%2Fgo-glmatrix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechnohippy%2Fgo-glmatrix/lists"}