polarToCartesian

public static Array<double> polarToCartesian(double r, double theta)

This takes in an r and theta value and converts them to Cartesian coordinates.

Return

this returns the x and y values, in that order, in an Array of doubles.

Parameters

r

this is the r value of the Point being converted.

theta

this is the theta value of the Point being converted.