{"id":13412929,"url":"https://github.com/ungerik/go3d","last_synced_at":"2025-04-04T20:11:38.792Z","repository":{"id":566088,"uuid":"1960211","full_name":"ungerik/go3d","owner":"ungerik","description":"A performance oriented 2D/3D math package for Go","archived":false,"fork":false,"pushed_at":"2024-05-02T07:39:36.000Z","size":209,"stargazers_count":318,"open_issues_count":2,"forks_count":49,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-03-24T23:02:18.188Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/ungerik.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2011-06-27T13:02:26.000Z","updated_at":"2025-01-17T15:22:16.000Z","dependencies_parsed_at":"2024-06-18T13:53:19.141Z","dependency_job_id":"9ddbae80-e9d1-449c-bc69-d5039be694f0","html_url":"https://github.com/ungerik/go3d","commit_stats":{"total_commits":85,"total_committers":13,"mean_commits":6.538461538461538,"dds":0.4,"last_synced_commit":"55ced4bcb3347d37e613f054daa9211ea1a06a3b"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ungerik%2Fgo3d","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ungerik%2Fgo3d/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ungerik%2Fgo3d/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ungerik%2Fgo3d/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ungerik","download_url":"https://codeload.github.com/ungerik/go3d/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247242678,"owners_count":20907134,"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","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":[],"created_at":"2024-07-30T20:01:31.238Z","updated_at":"2025-04-04T20:11:38.770Z","avatar_url":"https://github.com/ungerik.png","language":"Go","readme":"Package go3d is a performance oriented vector and matrix math package for 2D and 3D graphics.\n\nEvery type has its own sub-package and is named T. So vec3.T is the 3D vector type.\nFor every vector and matrix type there is a String() method and a Parse() function.\nBesides methods of T there are also functions in the packages, like vec3.Dot(a, b).\n\nPackages under the float64 directory are using float64 values instead of float32.\n\nMatrices are organized as arrays of columns which is also the way OpenGL expects matrices.\nDirectX expects \"arrays of rows\" matrices, use the Transpose() to convert.\n\nMethods that don't return a specific value, return a pointer to the struct to allow method call chaining.\n\nExample:\n\n\ta := vec3.Zero\n\tb := vec3.UnitX\n\ta.Add(\u0026b).Scale(5)\n\nMethod names in the past tense return a copy of the struct instead of a pointer to it.\n\nExample:\n\n\ta := vec3.UnitX\n\tb := a.Scaled(5) // a still equals vec3.UnitX\n\n\nNote that the package is designed for performance over usability where necessary.\nThis is the reason why many arguments are passed by pointer reference instead of by value.\nSticking either to passing and returning everything by value or by pointer\nwould lead to a nicer API, but it would be slower as demonstrated in mat4/mat4_test.go\n\n\tcd mat4\n\tgo test -bench=BenchmarkMulAddVec4_PassBy*\n\n\nDocumentation: https://pkg.go.dev/github.com/ungerik/go3d\n\n","funding_links":[],"categories":["Game Development","游戏开发","Go","\u003cspan id=\"游戏开发-game-development\"\u003e游戏开发 Game Development\u003c/span\u003e","Relational Databases"],"sub_categories":["Advanced Console UIs","Search and Analytic Databases","SQL 查询语句构建库","检索及分析资料库","\u003cspan id=\"高级控制台用户界面-advanced-console-uis\"\u003e高级控制台用户界面 Advanced Console UIs\u003c/span\u003e"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fungerik%2Fgo3d","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fungerik%2Fgo3d","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fungerik%2Fgo3d/lists"}