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
The implementation code of rotate2d is as follows:
void mx_rotate_vector2(vec2 _in, float amount, out vec2 result)
{
float rotationRadians = radians(amount);
float sa = sin(rotationRadians);
float ca = cos(rotationRadians);
result = vec2(ca*_in.x + sa*_in.y, -sa*_in.x + ca*_in.y);
}
the rotate is clockwise, bug specs are as follows:
the amount to rotate, specified in degrees, with positive values rotating the
incoming vector counterclockwise
The text was updated successfully, but these errors were encountered:
The implementation code of rotate2d is as follows:
void mx_rotate_vector2(vec2 _in, float amount, out vec2 result)
{
float rotationRadians = radians(amount);
float sa = sin(rotationRadians);
float ca = cos(rotationRadians);
result = vec2(ca*_in.x + sa*_in.y, -sa*_in.x + ca*_in.y);
}
the rotate is clockwise, bug specs are as follows:
the amount to rotate, specified in degrees, with positive values rotating the
incoming vector counterclockwise
The text was updated successfully, but these errors were encountered: