ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


math

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
math [2019/07/05 22:38] – [VectorToAngles] korshunmath [2019/08/26 21:12] korshun
Line 162: Line 162:
 ''int ipow(int x, int y)'' ''int ipow(int x, int y)''
  
-Returns x^y. Uses a simple multiplication loop.+Returns x<sup>y</sup>. Uses a simple multiplication loop.
  
 ==== fpow ==== ==== fpow ====
 ''fixed fpow(fixed x, fixed y)'' ''fixed fpow(fixed x, fixed y)''
  
-returns x^y. Supports powers below ''1.0''. Uses a simple loop with ''FixedMul'' or ''FixedDiv'', depending on whether the power is below ''1.0''.+returns x<sup>y</sup>. Supports powers below ''1.0''. Uses a simple loop with ''FixedMul'' or ''FixedDiv'', depending on whether the power is below ''1.0''.
  
  
math.txt · Last modified: 2019/08/26 21:26 by korshun