|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--dwvisser.monte.Direction
Class which provides an abstraction for a direction in 3-dimensional space.
Constructor Summary | |
Direction(double theta,
double phi)
Creates new direction, given theta (angle from z-axis) and phi (azimuthal angle from x axis) in radians. |
|
Direction(double _x,
double _y,
double _z)
Create a new direction by specifying its x, y, and z components. |
Method Summary | |
protected java.lang.Object |
clone()
|
static double |
evaluateLegendre(int _l,
int _m,
double _x)
Taken from plgndr, section 6.8 in Numerical Recipes in C. |
double[] |
get3vector(double amplitude)
|
static Direction |
getBackwardRandomDirection()
|
static Direction |
getDirection(Matrix m)
|
double |
getPhi()
|
double |
getPhiDegrees()
|
static Direction |
getRandomDirection()
|
static Direction |
getRandomDirection(double minThetaRad,
double maxThetaRad)
get Random direction between given theta limits |
static Direction |
getRandomDirection(int l)
Generate a random direction for m=0 using a Legendre polynomial distribution (attenuated by a sin theta solid angle factor). |
static Direction |
getRandomDirection(int l,
Direction d)
Generate a random direction using a Legendre polynomial distribution (attenuated by a sin theta solid angle factor), relative to a z-axis defined by the given direction. |
static Direction |
getRandomDirection(int l,
int m)
Generate a random direction using a Spherical Harmonic distribution (attenuated by a sin theta solid angle factor). |
double |
getTheta()
|
double |
getThetaDegrees()
|
Matrix |
getVector()
|
double |
getX()
|
double |
getY()
|
double |
getZ()
|
static void |
main(java.lang.String[] args)
|
static double |
normPhi(double _phi)
|
Direction |
rotateFrameY(double angRad)
Return a new Direction object resulting from this object's reference frame being rotated by angRad about the y-axis. |
Direction |
rotateFrameZ(double angRad)
Return a new Direction object resulting from this object's reference frame being rotated by angRad about the z-axis. |
Direction |
rotateY(double angRad)
return a new Direction object resulting from this object being rotated by angRad about the y-axis |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Direction(double theta, double phi)
public Direction(double _x, double _y, double _z)
Method Detail |
protected java.lang.Object clone()
clone
in class java.lang.Object
public Direction rotateY(double angRad)
public Direction rotateFrameY(double angRad)
public Direction rotateFrameZ(double angRad)
public static Direction getDirection(Matrix m)
public double[] get3vector(double amplitude)
public double getPhi()
public double getTheta()
public double getX()
public double getY()
public double getZ()
public Matrix getVector()
public static Direction getBackwardRandomDirection()
public java.lang.String toString()
toString
in class java.lang.Object
public static double normPhi(double _phi)
public double getPhiDegrees()
public double getThetaDegrees()
public static double evaluateLegendre(int _l, int _m, double _x) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public static Direction getRandomDirection(int l, int m)
public static Direction getRandomDirection(int l)
public static Direction getRandomDirection()
public static Direction getRandomDirection(double minThetaRad, double maxThetaRad)
public static Direction getRandomDirection(int l, Direction d)
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |