Skip to content
Discussion options

You must be logged in to vote

I did that to simplify the coding when you need to do something with a copy. For example, if v1 = PyVector(1, 2, 3), then you can access v1.copy.rotate(py5.PI / 2, dim=1) without rotating v1. I guess it wouldn't have been too much trouble if you needed to also include the () but this makes the code a bit easier to type and is similar to norm, which works the same way.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by villares
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants