public class PD
extends java.lang.Object
Constructor and Description |
---|
PD(double[] xyz,
double prop)
Constructs a PD object from Cartesian coordinates.
|
PD(double theta,
double phi,
double prop)
Constructs a PD object from spherical polar coordinates.
|
Modifier and Type | Method and Description |
---|---|
double |
getPDX()
Returns the x-component of the PD.
|
double |
getPDY()
Returns the y-component of the PD.
|
double |
getPDZ()
Returns the z-component of the PD.
|
double |
getPhi()
Returns the angle of longitude.
|
double |
getProp()
Returns the value of the function at the PD.
|
double |
getTheta()
Returns the angle of colatitude.
|
java.lang.String |
toString() |
public PD(double theta, double phi, double prop)
theta
- The angle of colatitude.phi
- The angle of longitude.prop
- The value of the function at theta, phi.public PD(double[] xyz, double prop)
xyz
- Cartesian coordinates [x, y, z] must have mod 1 (not checked).prop
- The value of the function at (x, y, z).public double getTheta()
public double getPhi()
public double getProp()
public double getPDX()
public double getPDY()
public double getPDZ()
public java.lang.String toString()
toString
in class java.lang.Object