back to Table of Contents


CartToPolA & CartToPolR (function)

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)

yPos% (INTEGER)


RESULT:

ang! (SINGLE)

rad! (SINGLE)


back to Table of Contents