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/Rotate: Difference between revisions
From SnesLab
(moved table up) |
(added parameters) |
||
Line 6: | Line 6: | ||
|} | |} | ||
'''Rotate''' is a DSP1 command. | '''Rotate''' is a [[DSP1]] command that performs a counterclockwise two-dimensional coordinate rotation of a point about the origin. | ||
=== Input Parameters === | |||
* '''θ''' is the angle of rotation about the Z axis | |||
* '''x1''' is the x coordinate before rotation | |||
* '''y1''' is the x coordinate before rotation | |||
=== Output Parameters === | |||
* '''x2''' is the x coordinate after rotation | |||
* '''y2''' is the y coordinate after rotation | |||
=== References === | === References === |
Revision as of 04:54, 15 July 2023
Basic Info | |||||||
---|---|---|---|---|---|---|---|
Opcode | 0C |
Rotate is a DSP1 command that performs a counterclockwise two-dimensional coordinate rotation of a point about the origin.
Input Parameters
- θ is the angle of rotation about the Z axis
- x1 is the x coordinate before rotation
- y1 is the x coordinate before rotation
Output Parameters
- x2 is the x coordinate after rotation
- y2 is the y coordinate after rotation
References
- Page 3-5-8 of Book II of the official Super Nintendo development manual