public class RThetaPhi
extends java.lang.Object
3次元球座標 r (0, +∞), theta [0, pi](rad), phi [0, 2*pi)(rad)
if input phi is out of [0, 2*pi), it will be changed to a value in [0, 2*pi)
コンストラクタと説明 |
---|
RThetaPhi(double r,
double theta,
double phi) |
修飾子とタイプ | メソッドと説明 |
---|---|
double |
getPhi() |
double |
getR() |
double |
getTheta() |
XYZ |
toCartesian() |
static XYZ |
toCartesian(double r,
double theta,
double phi) |
static double |
toPHIfromCartesian(double x,
double y)
入力されたデカルト座標(x, y)に対するφを返す
|
static double |
toPHIfromCartesian(double x,
double y,
double z)
入力されたデカルト座標(x, y, z)に対するφを返す zは本当はいらない
|
static double |
toRfromCartesian(double x,
double y,
double z)
入力されたデカルト座標(x, y, z)に対するrを返す
|
java.lang.String |
toString() |
static double |
toTHETAfromCartesian(double x,
double y,
double z)
入力されたデカルト座標(x, y, z)に対するθを返す
|
public RThetaPhi(double r, double theta, double phi)
r
- radiustheta
- [rad]phi
- [rad]public static double toPHIfromCartesian(double x, double y)
x
- in cartesiany
- in cartesianpublic static double toPHIfromCartesian(double x, double y, double z)
x
- in cartesiany
- in cartesianz
- in cartesianpublic static double toRfromCartesian(double x, double y, double z)
x
- in cartesiany
- in cartesianz
- in descartespublic static double toTHETAfromCartesian(double x, double y, double z)
x
- in cartesiany
- in cartesianz
- in cartesianpublic static XYZ toCartesian(double r, double theta, double phi)
r
- radiustheta
- [rad]phi
- [rad]public double getPhi()
public double getR()
public double getTheta()
public java.lang.String toString()
toString
クラス内 java.lang.Object
public XYZ toCartesian()