Salve. volevo chiedere se con l'action script è possibile implementare le funzioni di seno e coseno e fare dei calcolatori usando quelle funzioni!
Salve. volevo chiedere se con l'action script è possibile implementare le funzioni di seno e coseno e fare dei calcolatori usando quelle funzioni!
dalla guida online (F1) di Flash:
acos (Math.acos method)
Computes and returns the arc cosine of the number specified in the parameter x, in radians.
Availability: ActionScript 1.0; Flash Player 5
Parameters
x:Number - A number from -1.0 to 1.0.
Returns
Number - A number; the arc cosine of the parameter x.
Example
The following example displays the arc cosine for several values.
trace(Math.acos(-1)); // output: 3.14159265358979
trace(Math.acos(0)); // output: 1.5707963267949
trace(Math.acos(1)); // output: 0
....
per il seno..
asin (Math.asin method)
Math.sin(Number)
Math.cos(Number)
Math.tan(Number)
![]()