# Cosine
Grammar — Cos(a)
Flags —Native
|Function
Returns the cosine of an angle. The angle should be specified in degrees.
# Arguments
fixed
— Angle
Returns — fixed
native fixed Cos(fixed degrees);
# Related
Category: Math / Trigonometry
- [F] —
fixed
— Sine — ( Sin ) - [F] —
fixed
— Cosine — ( Cos ) - [F] —
fixed
— Tangent — ( Tan ) - [F] —
fixed
— Arcsine — ( ASin ) - [F] —
fixed
— Arccosine — ( ACos ) - [F] —
fixed
— Arctangent From Deltas — ( ATan2 ) - [F] —
fixed
— Arctangent From Value — ( ATan )
# Examples
# campaigns/liberty.sc2campaign
// 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
// L1246
Cos(lp_angle)
// L1142
Cos(lp_angle)
# mods/heroesbrawlmods/brawlmapmods/coop/pvebrawlmod.stormmod
// L1508
Cos((lv_angelUnit - lv_angelLane))
# mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmod
// L179
Cos((lv_angelUnit - lv_angelLane))
# mods/heroesdata.stormmod
// 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
// L130
Cos(lv_iTAngle)
# mods/novastoryassets.sc2mod
// L4479
Cos(CameraGetPitch(1))
// L4479
Cos(CameraGetPitch(1))
# mods/starcoop/starcoop.sc2mod
// 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
// L10466
Cos(lv_facing)
// L10472
Cos(lv_facing)
// L11439
Cos(lv_rightTriangleAngle)
// L11443
Cos(lv_rightTriangleAngle)