@woosh/meep-engine
Version:
Pure JavaScript game engine. Fully featured and production ready.
12 lines (11 loc) • 399 B
JavaScript
/**
* Volumetric sampling method, since sample volume is a point, it simply sets result to origin
* @param {function} random
* @param {number[]} result
* @param {number} destination_offset
*/
export function randomPointInPoint(random, result, destination_offset) {
result[destination_offset] = 0;
result[destination_offset + 1] = 0;
result[destination_offset + 2] = 0;
}