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/Distance: Difference between revisions
From SnesLab
(see also radius) |
(added parameters) |
||
Line 6: | Line 6: | ||
|} | |} | ||
'''Distance''' is a DSP1 command. | '''Distance''' is a [[DSP1]] command that calculates the length of a vector. | ||
=== Input Parameters === | |||
* '''x''' is a vector component | |||
* '''y''' is a vector component | |||
* '''z''' is a vector component | |||
=== Output Parameters === | |||
* '''R''' is the vector length | |||
=== See Also === | === See Also === |
Revision as of 04:49, 15 July 2023
Basic Info | |||||||
---|---|---|---|---|---|---|---|
Opcode | 28 |
Distance is a DSP1 command that calculates the length of a vector.
Input Parameters
- x is a vector component
- y is a vector component
- z is a vector component
Output Parameters
- R is the vector length
See Also
References
- Page 3-5-7 of Book II of the official Super Nintendo development manual