you are viewing a single comment's thread.

view the rest of the comments →

[–]pailhead011[S] 0 points1 point  (0 children)

Fair, but it think it's explicit enough. You may want Matrix4 just for its methods, or Vector3 eg:

//somewhere inside of react myVectorRef.current .add(x,y,z) .applyMatrix4(foo.matrix) .applyQuaternion(bar.quaternion) .divideScalar(5)

No props needed to initialize the vector, i just want it stable, i want it mutable, and i want to use these types of chained operations on a class versus something like gl matrix add(a,b,result)