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
Something as simple as:
function angleToVector(radians) return {x = math.sin(radians), y = math.cos(radians)} end
The text was updated successfully, but these errors were encountered:
I wont add this, since it's really easy to do yourself. Besides calculating the coordinates directly, i.e.
vector(math.cos(phi), math.sin(phi))
you can create a vector and rotate it:
vector(0,1):rotate_inplace(phi)
This way, you can define the phase (starting quadrant) as well as the radius.
Sorry, something went wrong.
Merge pull request vrld#3 from yangruihan/master
d029927
Update timer.lua to be compatible with lua 5.3
No branches or pull requests
Something as simple as:
function angleToVector(radians)
return {x = math.sin(radians), y = math.cos(radians)}
end
The text was updated successfully, but these errors were encountered: