Skip to content

pg-goose/pg-vector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PG-VECTOR ➡️ (Release v1.0.0)

Go Reference

Overview

A minimal generic 2D vector package.

The vectors are based on a length 2 array, it doesn't use slices. Includes the tipical operations between vectors.

  • Acces:
    • Set, Get or []
  • Between vectors:
    • Add, Sub, Hadamard, Dot, Angle
  • Using scalars:
    • Adds, Subs, Muls, Divs
  • Others:
    • Rotate, Unit, Norm
  • Boolean:
    • All, Any
  • References to it's values
    • X, Y
  • Tuple Acces:
    • XY, YX

Example

TODO

Estate

Test Coverage

0% but I've used them to some extent and so far so good.

About

A minimal set of generic vector operations

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages