We've just updated MediaWiki and its underlying software. If anything doesn't look or work quite right, please mention it to us. --RanAS
DSP1/Polar: Difference between revisions
From SnesLab
(added speed) |
|||
(6 intermediate revisions by the same user not shown) | |||
Line 7: | Line 7: | ||
|'''Speed''' | |'''Speed''' | ||
|147 cycles | |147 cycles | ||
19.3 μs | |||
|} | |} | ||
'''Polar''' is a [[DSP1]] command that | '''Polar''' is a [[DSP1]] command that rotates a point about an arbitrary axis. | ||
=== Input Parameters === | === Input Parameters === | ||
Line 20: | Line 21: | ||
* '''Y''' is a coordinate after rotation | * '''Y''' is a coordinate after rotation | ||
* '''Z''' is a coordinate after rotation | * '''Z''' is a coordinate after rotation | ||
=== See Also === | |||
* [[Rotate]] | |||
=== References === | === References === | ||
* [https://archive.org/details/SNESDevManual/book2/page/n299 | * subparagraph 5.3.2 on [https://archive.org/details/SNESDevManual/book2/page/n299 page 3-5-9 of Book II] of the official Super Nintendo development manual | ||
* paragraph 6.9 on [https://archive.org/details/SNESDevManual/book2/page/n325 page 3-6-2 of Book II], lbid. | |||
* https://github.com/bsnes-emu/bsnes/blob/master/bsnes/sfc/coprocessor/dsp1/dsp1emu.cpp#L462 | |||
[[Category:DSP1]] | [[Category:DSP1]] | ||
[[Category:Coordinate Calculation Commands]] |
Latest revision as of 05:07, 10 January 2024
Basic Info | |||||||
---|---|---|---|---|---|---|---|
Opcode | 1C | ||||||
Speed | 147 cycles
19.3 μs |
Polar is a DSP1 command that rotates a point about an arbitrary axis.
Input Parameters
- x is a coordinate before rotation
- y is a coordinate before rotation
- z is a coordinate before rotation
Output Parameters
- X is a coordinate after rotation
- Y is a coordinate after rotation
- Z is a coordinate after rotation
See Also
References
- subparagraph 5.3.2 on page 3-5-9 of Book II of the official Super Nintendo development manual
- paragraph 6.9 on page 3-6-2 of Book II, lbid.
- https://github.com/bsnes-emu/bsnes/blob/master/bsnes/sfc/coprocessor/dsp1/dsp1emu.cpp#L462