-
Notifications
You must be signed in to change notification settings - Fork 18
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
Instance methods #7
Comments
I really dislike this for syntactical reasons but I agree that it has performance benefits. How about this idea: Does that work? |
I`m not sure if its works. You have to use the It works with the |
Right that makes sense. Hm I have to think about it a bit more because I really don't like to clutter the interface unnecessarily. |
I just have tried some approaches. But there is just no way to create an extension with |
Sometimes a simple position struct has to be updated. There is actually no need to allocate a new object and let the old one be garbage on the heap. Also, this method of using memory is much much faster than creating a new instance from , for example, two multiplied struct.
I would aprreciate instance methods like:
An example how I would use it with matrices:
The text was updated successfully, but these errors were encountered: