We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Maybe add a .fromAngleRad( angle ) such as:
Victor.fromAngleRad = function ( angle ) { return new Victor(Math.cos( angle ), Math.sin( angle )); }
The text was updated successfully, but these errors were encountered:
@DrLightman wouldn't radians be the default:
Victor.fromAngle = function(radians) { return new Victor(Math.cos(radians), Math.sin(radians)); }
And then maybe:
Victor.fromAngleDeg = function(degrees) { return Victor.fromAngle(degrees * (Math.PI / 180)); }
Sorry, something went wrong.
No branches or pull requests
Maybe add a .fromAngleRad( angle ) such as:
The text was updated successfully, but these errors were encountered: