sin

Returns the sine of val (val in radians).

Syntax:

GML Code Example

sin(val);


Argument Description
val The angle (in radians) to return the sine of.


Returns: Real


Description

In a right angled triangle sin(val) = Opposite / Hypotenuse where val is one of the three angles.


Example:

GML Code Example

val = sin( pi/2 );

This will set val to 1.





No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here