How would you be able to change Math.sin, Math.cos and Math.tan into an int?
This is because I heard that it is useful to have those Math resources in movement, gravity, etc. in gaming.
Also, as a little inside question, does anyone know if there is a method where you can square or cube a number instead of doing:
(Pseudo Example)
9 * 9 * 9 ?
|
|
||||
|
|
|
You can convert any
However, this really does not make sense. Since the result of Your second question.
Or use the built in function
You can see check the java doc to see what functions Java has built in for math. Finally, you can check out some of these math resources: |
|||||||||
|