02F6

From GTAMods Wiki
Revision as of 23:58, 12 July 2015 by Spaceeinstein (talk | contribs) (Created page with "{{Icon|trilogy}} '''SIN''' <hr /> '''Description''' : Takes the sine of the floating-point value '''Syntax''' : 02F6: [''var''] = sine [''flt''] '''Parameter''' : [''var''] ::...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

GTA III Vice City San Andreas SIN


Description

Takes the sine of the floating-point value

Syntax

02F6: [var] = sine [flt]

Parameter

[var]
Variable to store the floating-point result
[flt]
Floating-point value in degrees

Native analog

SIN

This opcode takes the sine of the floating-point value in degrees and stores the result into a variable. The result will always be between -1.0 and 1.0. Internally, the game converts the value to radians (3.1415927 × value × 0.0055555557), then takes sine of that in radians.

Keywords

math, sin, sine

See also