modulepackage
0.0.0-20200510090729-ddf5eb19405b
Repository: https://github.com/vron/v2d.git
Documentation: pkg.go.dev
# README
v2d
2D vector math library in golang.
There exist several ones, but could not find one fitting my requirements of:
- MIT license
- All operations on values, not pointers
- float32
- 2D optimized
Inspired by https://github.com/joonazan/vec2 which however does not specify any license.
# Packages
Pacakge v2d implements 2D float64 vector math.
# Functions
CrossZ returns the cross product of (0, 0, z) and (x, y, 0).
R is a convenience method to create a rectangle.
Rotate move creates a Transform that rotates with an angle theta about around and subsequently adds offset.
V is a convenience function to create a Vec.
# Structs
A Rect represents a bounding rectangle in the (x, y) plane that is always aligned with the x and y axis.
No description provided by the author
Vec is a 2D vector (x, y).
# Interfaces
No description provided by the author