Cos: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Mblackwell (talk | contribs)
mNo edit summary
One (talk | contribs)
No edit summary
 
Line 1: Line 1:
cos <[[gamevar]]> <[[gamevar|gamevar2]]>
'''cos''' <[[gamevar]]> <[[gamevar|gamevar2]]>


Sets <[[gamevar]]> to the cosine of the angle defined by <[[gamevar|gamevar2]]>. While in mathematics the hypotenuse has length 1, here it has 16384 (obviously because the engine doesn't support decimal values). Also see [[sin]].
Sets <[[gamevar]]> to the cosine of the angle defined by <[[gamevar|gamevar2]]>. While in mathematics the hypotenuse has length 1, here it has 16384 (obviously because the engine doesn't support decimal values). Also see [[sin]].

Latest revision as of 11:01, 4 May 2009

cos <gamevar> <gamevar2>

Sets <gamevar> to the cosine of the angle defined by <gamevar2>. While in mathematics the hypotenuse has length 1, here it has 16384 (obviously because the engine doesn't support decimal values). Also see sin.