Sin - Math

From the CreationKit Wiki
Jump to navigation Jump to search

Member of: Math Script

Calculates the sine of the value (in degrees) it is given.

Syntax[edit | edit source]

float Function sin(float afValue) native global

Parameters[edit | edit source]

  • afValue: The value to get the sine of, in degrees.

Return Value[edit | edit source]

The sine of the passed-in value.

Examples[edit | edit source]

float x = math.sin(180.0) ; x == 0
float y = math.sin(90.0) ; y == 1

See Also[edit | edit source]