Xkonti / govec

Go library providing 2D and 3D vector operations
MIT License
6 stars 7 forks source link

Implement `Average` operation #9

Closed Xkonti closed 1 year ago

Xkonti commented 1 year ago

The operation calculates the average of all vector components. For integer vectors it returns a float64 value.

vec1.Average()