* turn a p5.Vector Array into a one dimensional number array * @param {Array} arr an array of p5.Vector * @return {Array]} a one dimensional array of numbers * [p5.Vector(1, 2, 3), p5.Vector(4, 5, 6)] -> * [1, 2, 3, 4, 5, 6]
(arr)
| 33813 | * [1, 2, 3, 4, 5, 6] |
| 33814 | */ |
| 33815 | function vToNArray(arr){ |
| 33816 | return flatten(arr.map(function(item){ |
| 33817 | return [item.x, item.y, item.z]; |
| 33818 | })); |
| 33819 | } |
| 33820 | module.exports = p5.RendererGL; |
| 33821 | |
| 33822 | },{"../core/core":42}],91:[function(_dereq_,module,exports){ |