https://github.com/dobefu/vectors
A Go package providing 2D and 3D vector types with mathematical operations.
https://github.com/dobefu/vectors
2d 3d game-development go golang libraries library math vector vector-math vector2 vector3 vectors
Last synced: 7 months ago
JSON representation
A Go package providing 2D and 3D vector types with mathematical operations.
- Host: GitHub
- URL: https://github.com/dobefu/vectors
- Owner: Dobefu
- License: mit
- Created: 2025-06-21T13:41:40.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-07-20T17:21:54.000Z (9 months ago)
- Last Synced: 2025-09-06T23:44:09.121Z (7 months ago)
- Topics: 2d, 3d, game-development, go, golang, libraries, library, math, vector, vector-math, vector2, vector3, vectors
- Language: Go
- Homepage:
- Size: 20.5 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Vectors
[](https://pkg.go.dev/github.com/Dobefu/vectors)
[](https://sonarcloud.io/summary/new_code?id=Dobefu_vectors)
[](https://goreportcard.com/report/github.com/Dobefu/vectors)
A Go package providing 2D and 3D vector types with mathematical operations.
## Installation
```bash
go get github.com/Dobefu/vectors
```
## Usage
```go
package main
import "github.com/Dobefu/vectors"
func main() {
vec := vectors.Vector2{X: 3, Y: 4}
magnitude := vec.Magnitude() // Returns 5.0
}
```