These two functions are used to convert a cartesian coordinates pair into its polar representation.
SYNTAX:
ang! = CartToPolA! (xPos%, yPos%) rad! = CartToPolR! (xPos%, yPos%)
INPUTS:
xPos% (INTEGER)
- The X position of the cartesian coordinates pair.
yPos% (INTEGER)
- The Y position of the cartesian coordinates pair.
RESULT:
ang! (SINGLE)
- This will be returned by the function CartToPolA() and represents the polar angle of the given cartesian coordinates pair.
rad! (SINGLE)
- This will be returned by the function CartToPolR() and represents the polar radius of the given cartesian coordinates pair.