<feed xmlns='http://www.w3.org/2005/Atom'>
<title>oot/src/code/sys_math.c, branch main</title>
<subtitle>Decompilation of The Legend of Zelda: Ocarina of Time</subtitle>
<link rel='alternate' type='text/html' href='https://git.dog6.net/oot/'/>
<entry>
<title>Experiment: remove global.h dependency from sys_math, sys_math3d, z_lib (#1956)</title>
<updated>2024-06-19T04:00:23+00:00</updated>
<author>
<name>mzxrules</name>
<email>mzxrules@gmail.com</email>
</author>
<published>2024-06-19T04:00:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.dog6.net/oot/commit/?id=8d83727429602d422a524d00244f16f46ea8e70e'/>
<id>8d83727429602d422a524d00244f16f46ea8e70e</id>
<content type='text'>
* split sys_math, sys_math3d, z_lib from global.h

* suggestions

* forgot this

* more math stuff

* nit fix

* re-add ichain.h

* resolve tharo's comments</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* split sys_math, sys_math3d, z_lib from global.h

* suggestions

* forgot this

* more math stuff

* nit fix

* re-add ichain.h

* resolve tharo's comments</pre>
</div>
</content>
</entry>
<entry>
<title>Lightweight trigonometry doc (#1356)</title>
<updated>2022-10-15T21:29:36+00:00</updated>
<author>
<name>Dragorn421</name>
<email>Dragorn421@users.noreply.github.com</email>
</author>
<published>2022-10-15T21:29:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.dog6.net/oot/commit/?id=0283493db8e968be67d9e591ec4719fe9d0477f0'/>
<id>0283493db8e968be67d9e591ec4719fe9d0477f0</id>
<content type='text'>
* Doc units of trig functions

* "Very simple" yet I made a mistake

* sins returns in [-0x7FFF,0x7FFF] as the [-1,1] range

* Also `sys_math_atan.c`

* Remove `@param`s without descriptions

* Add note on Math_Atan2S/F arguments being unlike atan2

* "from (1,0) to (x,y)" -&gt; "from vector ..."

* arg names -&gt; `angle`

* Improve `@return` comment on atans</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Doc units of trig functions

* "Very simple" yet I made a mistake

* sins returns in [-0x7FFF,0x7FFF] as the [-1,1] range

* Also `sys_math_atan.c`

* Remove `@param`s without descriptions

* Add note on Math_Atan2S/F arguments being unlike atan2

* "from (1,0) to (x,y)" -&gt; "from vector ..."

* arg names -&gt; `angle`

* Improve `@return` comment on atans</pre>
</div>
</content>
</entry>
<entry>
<title>Angle cleanup - miscellaneous (#1159)</title>
<updated>2022-04-03T18:32:18+00:00</updated>
<author>
<name>Dragorn421</name>
<email>Dragorn421@users.noreply.github.com</email>
</author>
<published>2022-04-03T18:32:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.dog6.net/oot/commit/?id=3ce701cfd8b1fb73270048f46389bcae83793ef3'/>
<id>3ce701cfd8b1fb73270048f46389bcae83793ef3</id>
<content type='text'>
* Add `BINANG_TO_RAD_ALT2`

* Few hex constants in place of decimal cardinal angles

* Use `BINANG_TO_DEGF` more

* Use `DEG_TO_RAD(int)` for angle literals

* `BINANG_TO_RAD_ALT(literal)` -&gt; use `BINANG_TO_RAD`

* Somewhat arbitrary literal angles cleanup</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Add `BINANG_TO_RAD_ALT2`

* Few hex constants in place of decimal cardinal angles

* Use `BINANG_TO_DEGF` more

* Use `DEG_TO_RAD(int)` for angle literals

* `BINANG_TO_RAD_ALT(literal)` -&gt; use `BINANG_TO_RAD`

* Somewhat arbitrary literal angles cleanup</pre>
</div>
</content>
</entry>
<entry>
<title>Fix most compiler warnings in the boot and code segments (#674)</title>
<updated>2021-02-14T00:49:40+00:00</updated>
<author>
<name>Tharo</name>
<email>17233964+Thar0@users.noreply.github.com</email>
</author>
<published>2021-02-14T00:49:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.dog6.net/oot/commit/?id=f9d96d9f73ac090245a518ec04f3fa0e50655d1e'/>
<id>f9d96d9f73ac090245a518ec04f3fa0e50655d1e</id>
<content type='text'>
* Less warnings in boot &amp; code segments

* few more warnings gone

* Ran formatter

* z_view warning gone

* -&gt; 1

* f31 -&gt; 31

* Remove function casts

* Few more small improvements

* Separate declaration and assignment in func_80091738 and Item_Give

Co-authored-by: Thar0 &lt;maximilianc64@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Less warnings in boot &amp; code segments

* few more warnings gone

* Ran formatter

* z_view warning gone

* -&gt; 1

* f31 -&gt; 31

* Remove function casts

* Few more small improvements

* Separate declaration and assignment in func_80091738 and Item_Give

Co-authored-by: Thar0 &lt;maximilianc64@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Consistent naming for Math_ functions (#542)</title>
<updated>2020-12-26T10:44:53+00:00</updated>
<author>
<name>petrie911</name>
<email>69443847+petrie911@users.noreply.github.com</email>
</author>
<published>2020-12-26T10:44:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.dog6.net/oot/commit/?id=8fa6cb6ff927496403f950fc86146d6aabe9773f'/>
<id>8fa6cb6ff927496403f950fc86146d6aabe9773f</id>
<content type='text'>
* Darkmeiro decompilation

Bg_Gnd_Darkmeiro decompiled, matched, and documented.

* give this a shot

* fix conflict

* one more try

* could be useful

* whoops

* ZAP2 stuff

* ZAP why

* ZAP again

* maths

* Factoriali -&gt; Factorial

* soon, soon

* renames

* rand

* docs

* merged

* formatting

* little more cleanup

* asm crept back in

* changes to MathF

* smooth criminal

* functions.h</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Darkmeiro decompilation

Bg_Gnd_Darkmeiro decompiled, matched, and documented.

* give this a shot

* fix conflict

* one more try

* could be useful

* whoops

* ZAP2 stuff

* ZAP why

* ZAP again

* maths

* Factoriali -&gt; Factorial

* soon, soon

* renames

* rand

* docs

* merged

* formatting

* little more cleanup

* asm crept back in

* changes to MathF

* smooth criminal

* functions.h</pre>
</div>
</content>
</entry>
<entry>
<title>libultra cleanup (#215)</title>
<updated>2020-10-03T15:22:44+00:00</updated>
<author>
<name>Random</name>
<email>28494085+Random06457@users.noreply.github.com</email>
</author>
<published>2020-10-03T15:22:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.dog6.net/oot/commit/?id=174af7384d1cfcbf15da02d9069bf02bdc433c20'/>
<id>174af7384d1cfcbf15da02d9069bf02bdc433c20</id>
<content type='text'>
* cleanup libultra

* fixes

- use quotes instead of &lt;&gt; for includes
- add macros for zelda specific thread priorities
- fix Makefile
- properly format the remaining pfs structs

* fix button macros + add CHECK_BTN_ANY/CHECK_BTN_ALL

* remove ULTRA_ABS

* fix includes

* update z_player.c/z_lib.c + run format.sh

* merge upstream/master

* fix include in En_Goroiwa

* fix includes</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* cleanup libultra

* fixes

- use quotes instead of &lt;&gt; for includes
- add macros for zelda specific thread priorities
- fix Makefile
- properly format the remaining pfs structs

* fix button macros + add CHECK_BTN_ANY/CHECK_BTN_ALL

* remove ULTRA_ABS

* fix includes

* update z_player.c/z_lib.c + run format.sh

* merge upstream/master

* fix include in En_Goroiwa

* fix includes</pre>
</div>
</content>
</entry>
<entry>
<title>Match sys_math.c and one in z_scene_table.c (#90)</title>
<updated>2020-04-22T16:18:53+00:00</updated>
<author>
<name>JoshDuMan</name>
<email>40190173+JoshDuMan@users.noreply.github.com</email>
</author>
<published>2020-04-22T16:18:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.dog6.net/oot/commit/?id=06b731c494b44e71422231872750acc35445392c'/>
<id>06b731c494b44e71422231872750acc35445392c</id>
<content type='text'>
* Match func_800CA63C

* Remove func_800CA63C.s

* Match func_8009BEEC?

* Remove func_8009BEEC.s</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Match func_800CA63C

* Remove func_800CA63C.s

* Match func_8009BEEC?

* Remove func_8009BEEC.s</pre>
</div>
</content>
</entry>
<entry>
<title>Math Files (#76)</title>
<updated>2020-04-19T03:28:24+00:00</updated>
<author>
<name>krimtonz</name>
<email>33664508+krimtonz@users.noreply.github.com</email>
</author>
<published>2020-04-19T03:28:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.dog6.net/oot/commit/?id=ee48867446b9888287e9eaa304b014b5f6a54736'/>
<id>ee48867446b9888287e9eaa304b014b5f6a54736</id>
<content type='text'>
* math3d wip

* math3d wip

* wip

* wip

* wip

* wip

* final update before pr

* run format.sh

* fix merge conflicts

* tharo suggestions update

* fig formatting suggestion

* math3d pr updates

* use sFactorialTbl in sys_math</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* math3d wip

* math3d wip

* wip

* wip

* wip

* wip

* final update before pr

* run format.sh

* fix merge conflicts

* tharo suggestions update

* fig formatting suggestion

* math3d pr updates

* use sFactorialTbl in sys_math</pre>
</div>
</content>
</entry>
</feed>
