You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello everyone,
I am currently studying creative programming using Quill and I am enjoying it a lot. I am using the "Nature of Code" in my studies and in the book a series of interesting concepts of movement and physics are developed using the PVector class of Processing. I would like to ask if exists an interest to implement in Quill some kind of Clojure constructor analogous to the class?
The text was updated successfully, but these errors were encountered:
Hi @chagasVinicius!
I don't speak officially here, but maybe I can still help. In general the Clojurians slack is more active should you ever get stuck and need an urgent answer.
Now to your question:
I find it simple enough to just use Clojure vectors. You can create them using [x y] and conveniently destructure them and create new ones wherever you need them. The quil API does the same in many places.
If you need more builtin methods, say you don't want to implement the maths yourself, maybe take a look at the thi.ng.geom or fastmath libraries, both of which provide a rich set of geometry data types and manipulations on them. They implement the right protocols, so using them may just be a drop-in replacement in many cases. My personal experience though is that it pays off to keep it simple, and using plain Clojure vectors until I hit performance bounaries is just fine.
Edit: I misread the issue as a question for advice, but I saw now that this is maybe more of an inquiry whether people would find it useful. I hope the comment still makes sense.
Hello everyone,
I am currently studying creative programming using Quill and I am enjoying it a lot. I am using the "Nature of Code" in my studies and in the book a series of interesting concepts of movement and physics are developed using the PVector class of Processing. I would like to ask if exists an interest to implement in Quill some kind of Clojure constructor analogous to the class?
The text was updated successfully, but these errors were encountered: