Skip to content

Files

Latest commit

e8cc9e1 · Jan 14, 2023

History

History
35 lines (25 loc) · 706 Bytes

README.md

File metadata and controls

35 lines (25 loc) · 706 Bytes

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.