public class XYZ
extends java.lang.Object
3-D Cartesian coordinates right-handed system This class is immutable
コンストラクタと説明 |
---|
XYZ(double x,
double y,
double z) |
修飾子とタイプ | メソッドと説明 |
---|---|
double |
getDistance(XYZ xyz) |
double |
getR() |
double |
getX() |
double |
getY() |
double |
getZ() |
XYZ |
rotateaboutX(double theta)
X軸中心にtheta回転させる
|
XYZ |
rotateaboutY(double theta)
Y軸中心にtheta回転させる
|
XYZ |
rotateaboutZ(double theta)
Z軸中心にtheta回転させる
|
Location |
toLocation() |
RThetaPhi |
toSphericalCoordinate() |
static RThetaPhi |
toSphericalCoordinate(double x,
double y,
double z) |
java.lang.String |
toString() |
public static RThetaPhi toSphericalCoordinate(double x, double y, double z)
public java.lang.String toString()
public double getR()
public double getZ()
public XYZ rotateaboutX(double theta)
theta
- θ[rad]XYZ
created by rotating this by the theta about the x
axispublic XYZ rotateaboutY(double theta)
theta
- θ[rad]XYZ
created by rotating this by the theta about the y
axispublic XYZ rotateaboutZ(double theta)
theta
- θ[rad]XYZ
created by rotating this by the theta about the z
axispublic double getDistance(XYZ xyz)
xyz
- targetpublic Location toLocation()
public RThetaPhi toSphericalCoordinate()
public double getX()
public double getY()