# Cosine

Grammar — Cos(a)
FlagsNative | Function

Returns the cosine of an angle. The angle should be specified in degrees.

# Arguments

  • fixed — Angle

Returns — fixed

native fixed Cos(fixed degrees);

Category: Math / Trigonometry

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L7035
Cos((lv_alpha + lv_angle))
// L2360
Cos(lv_facing)
// L2366
Cos(lv_facing)
// L7035
Cos((lv_alpha + lv_angle))
// L2360
Cos(lv_facing)
// L2366
Cos(lv_facing)
// L1855
Cos(lv_facing)
// L1862
Cos(lv_facing)
// L1921
Cos(lv_facing)
// L1928
Cos(lv_facing)
// L1855
Cos(lv_facing)
// L1862
Cos(lv_facing)
// L1921
Cos(lv_facing)
// L1928
Cos(lv_facing)
// L3842
Cos(lv_facing)
// L3848
Cos(lv_facing)
// L561
Cos(lv_normalizedCurrentAngle)
// L2116
Cos(lv_angleB)
// L3842
Cos(lv_facing)
// L3848
Cos(lv_facing)
// L561
Cos(lv_normalizedCurrentAngle)
// L2116
Cos(lv_angleB)

# campaigns/voidstory.sc2campaign

VoidCampaignMissionLib.galaxy

// L4832
Cos(CameraGetPitch(1))
// L5978
Cos(lv_r)
// L6006
Cos(lv_r)

# mods/core.sc2mod

NativeLib.galaxy

// L1246
Cos(lp_angle)
// L1142
Cos(lp_angle)

# mods/heroesbrawlmods/brawlmapmods/coop/pvebrawlmod.stormmod

LibPVEB.galaxy

// L1508
Cos((lv_angelUnit - lv_angelLane))

# mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmod

LibPVEM.galaxy

// L179
Cos((lv_angelUnit - lv_angelLane))

# mods/heroesdata.stormmod

GameDataHelperLib.galaxy

// L263
Cos(lv_targetAngle)
// L268
Cos(lv_targetAngle)
// L270
Cos(lv_targetAngle)
// L275
Cos(lv_targetAngle)
// L289
Cos(lv_targetAngle)
// L294
Cos(lv_targetAngle)
// L296
Cos(lv_targetAngle)
// L301
Cos(lv_targetAngle)
// L315
Cos(lv_targetAngle)
// L320
Cos(lv_targetAngle)

# mods/heromods/imperius.stormmod

LibHIMP.galaxy

// L130
Cos(lv_iTAngle)

# mods/novastoryassets.sc2mod

MapScript.galaxy

// L4479
Cos(CameraGetPitch(1))
// L4479
Cos(CameraGetPitch(1))

# mods/starcoop/starcoop.sc2mod

LibCOMI.galaxy

// L5233
Cos(lv_targetAngle)
// L5238
Cos(lv_targetAngle)
// L5239
Cos(lv_targetAngle)
// L5241
Cos(lv_targetAngle)
// L5246
Cos(lv_targetAngle)
// L5247
Cos(lv_targetAngle)
// L5265
Cos(lv_targetAngle)
// L5270
Cos(lv_targetAngle)
// L5271
Cos(lv_targetAngle)
// L5273
Cos(lv_targetAngle)

# mods/starcoop/starcoop.sc2mod

LibCOMU.galaxy

// L10466
Cos(lv_facing)
// L10472
Cos(lv_facing)
// L11439
Cos(lv_rightTriangleAngle)
// L11443
Cos(lv_rightTriangleAngle)