geekgunda / vectormath

Simple library to implement vector math in Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Simple library to implement vector math in Go

License:MIT License


Languages

Language:Go 100.0%