Replies: 2 comments 5 replies
-
Great work, @hx2A. What you've provided covers everything I need. Of course, it's always handy to have NumPy at hand (which is sorely missing in processing.py). "Swizzling" is something new to me -- not sure where I'll use it, but it's sure to prove handy somewhere. |
Beta Was this translation helpful? Give feedback.
-
Cheers @hx2A! I suppose the missing blog post at the start of this discussion became the basis for the documentation at https://py5.ixora.io/reference/py5vector.html ? Something I have noticed porting old examples is that as operations between 2D and 3D vectors are not allowed, initializing a Py5Vector like Would it slow things down too much if when a "2D and 3D" operation arises and one of the vector is the "null vector", it gets promoted to 3D or demoted to 2D? Or perhaps should we disallow calling Py5Vector() without arguments? Forcing people to write Py5Vector(0, 0), or Py5Vector(0, 0, 0) or to call Py5Vector2D, Py5Vector3D, or even Py5Vector4D? or perhaps follow the pattern of Py5Vector.random(dim)? |
Beta Was this translation helpful? Give feedback.
-
This is a discussion thread for the prototype of the new Py5Vector class.
First, read this blog post to understand the background and the general idea for how the prototype works.
The code associated with the blog post is on gist. When the code starts changing, you'll want to go directly to the repo instead.
Comments and feedback welcome!
Beta Was this translation helpful? Give feedback.
All reactions