Support

Equilla Formula Language

TrigMode

Sets the mode for trigonometric functions.

Inputs

TrigMode
Numeric: The mode used for trigonometric functions. The default value is TrigModeRadians.

Trigonometric Modes

TrigModeRadians Arguments to trigonometric functions are passed as radians.
TrigModeDegrees Arguments to trigonometric functions are passed as degrees.

Examples

Draw a sine curve
Meta: TrigMode( TrigModeDegrees ); DrawLine( Sine( 360 * (CurrentBar / TotalBars) ) , "Sine" );

See also:

Meta; Atn; Cos; Cot; Sin; Tan;