Cos - Math

From the Fallout4 CreationKit Wiki
Revision as of 14:11, 2 December 2015 by imported>Plplecuyer
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: Math Script

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

Syntax[edit | edit source]

float Function cos(float afValue) native global

Parameters[edit | edit source]

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

Return Value[edit | edit source]

The cosine of the passed-in value.

Examples[edit | edit source]

float x = cos(180) ; x == -1
float y = cos(90) ; y == 0

See Also[edit | edit source]