📜  极坐标到笛卡尔java代码示例

📅  最后修改于: 2022-03-11 14:52:35.048000             🧑  作者: Mango

代码示例2
static double[] cari(double r, double theta) {
    theta = (theta / 180) * Math.PI;
    return new double[]{r * Math.cos(theta), r * Math.sin(theta)};
}