/vectormath

Simple library to implement vector math in Go

Primary LanguageGoMIT LicenseMIT

Vector Math

Simple implementation of a 3-dimensional vector and basic operations in Go.

List of Operations covered

  • Addition of two vectors
  • Multiplication by a scalar
  • Dot product of two vectors
  • Cross product of two vectors

Most functions are defined to return a new vector without modifying the input.