point_pool.js 268 B

12345678910111213
  1. import {
  2. createTypedArray,
  3. } from '../helpers/arrays';
  4. import poolFactory from './pool_factory';
  5. const pointPool = (function () {
  6. function create() {
  7. return createTypedArray('float32', 2);
  8. }
  9. return poolFactory(8, create);
  10. }());
  11. export default pointPool;