-
Notifications
You must be signed in to change notification settings - Fork 7
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
Implement RotateRad
operation
#24
Comments
Right, can I work on this? |
Sure, But I'm not sure what's the usual approach for 3D vectors here. |
@sathuhebbar I think for now let's limit it only to |
Oh cool. I was just looking up 3D rotations and thought we could use quaternion rotation. But for now, I'll implement these. |
Yeah. After 1.0.0 I'm thinking about adding concepts of "quaternions" and "planes" to allow more advanced 3D vector operations but without having to have a PHD in math. |
pHD in math XD. Yup having a quaternion type would make it convenient. I've added the 2D vector methods here. Thanks! |
Added a file `rotateRad.go`: 1. Provides rotation by radians for 2D vectors only 2. Closes #24
Rotates a vector by an angle specified in radians.
Functions for integer vectors should return a float vector.
The text was updated successfully, but these errors were encountered: