-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running list of p5.dimensions Errors #13
Comments
I had a look at the source and I have a couple questions about the errors above.
|
|
Yea, I remember writing the constructor function (or rewriting it, I think?), I tried to implement the infinite dimensions, but it was too much of a hassle. And just recently I was looking at the code, and I thought about doing infinite dimensions. But, a lot of code depends on the dimensionSymbols variable. I may implement it later. |
Yeah, let's consider it for v2.0.0 since it will change (and potentially break) how people might use v1. |
Interesting, I had no idea cross product is a 3 dimension only thing! I personally think if that is the case then it probably should be removed here, not only is it already covered by p5.js (which could cause confusion I think), it isn't really benefitting from what this library is doing (which is providing useful n dimensional maths where cross is only 3 dimensions). People using this library might come to expect the |
Yes, I agree with your point. I will remove it. |
Technically you can also do cross product in 7 diemensions. When I was writing in I actually though about adding 7d cross products, but the formula is quite huge. |
Here it is, 7d cross product: |
Hmm interesting! Does it work in 5? |
If it works in all odd dimensions it makes it still useful and out of the scope of p5's cross function. |
I have no idea what they are saying, but they are proving that it is only defined in 3 and 7 dimensional space. |
Interesting... If it gives a complex result in other dimensions it might still be useful. In which case we should probably also think about introducing complex numbers. |
Current Errors:
nVector function: "P5JS ERROR: Too many dimensions were entered!"
nCross function: "P5JS ERROR: Vectors must be 3 dimensional!"
The text was updated successfully, but these errors were encountered: