There was an error while loading. Please reload this page.
1 parent f3c6646 commit 9fed75bCopy full SHA for 9fed75b
1 file changed
src/Processing.h
@@ -304,6 +304,7 @@ class PVector {
304
PVector& set(float _x, float _y, float _z=0) { x=_x; y=_y; z=_z; return *this; }
305
PVector& set(const PVector& v) { x=v.x; y=v.y; z=v.z; return *this; }
306
PVector copy() const { return PVector(x, y, z); }
307
+ ::std::vector<float> array() const { return {x, y, z}; }
308
309
// Magnitude
310
float mag() const { return ::std::sqrt(x*x + y*y + z*z); }
0 commit comments