average

fun average(vectors: List<Vec3>, result: Vec3): Vec3

Computes the average of a specified array of vectors.

Parameters

vectors

The vectors whose average to compute.

result

A pre-allocated Vec3 in which to return the computed average.