Top 7.0% dependent packages on proxy.golang.org
proxy.golang.org : github.com/bbredesen/vkm
Package vkm provides matrix math functions targeted at computer graphics. It was built for use with go-vk (https://github.com/bbredesen/go-vk), but should be appropriate for any graphics API expecting column-major matricies. All matricies are 4x4. The Vec and Pt types are 4-component, homogenous column vectors. You can directly instantiate them via: but it is recommended instead to call the New... functions to ensure that the fourth component is correctly set. Convenience "zero value" functions for the Origin, ZeroVec, and Identity matrix are included. Additionally, standard transformation matricies are provided. You can either generate the matrix directly: or you can apply a transformation to an existing matrix: Note that applied transformations are left-multiplied, so m.Translate(v) = T(v) x m, whereas calling MultM will right-multiply: m.MultM(t) = m x t.
Registry
-
Source
- Documentation
- JSON
- codemeta.json
purl: pkg:golang/github.com/bbredesen/vkm
License: MIT
Latest release: over 2 years ago
First release: about 5 years ago
Namespace: github.com/bbredesen
Dependent packages: 3
Stars: 0 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 6 days ago