Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

polar to cartesian java

static double[] cari(double r, double theta) {
    theta = (theta / 180) * Math.PI;
    return new double[]{r * Math.cos(theta), r * Math.sin(theta)};
}
 
PREVIOUS NEXT
Tagged: #polar #cartesian #java
ADD COMMENT
Topic
Name
3+3 =