|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgov.nist.microanalysis.NISTMonte.CylindricalShape
public class CylindricalShape
A MonteCarloSS.Shape representing a cylindrical shape of arbitrary axis and radius.
Copyright: Pursuant to title 17 Section 105 of the United States Code this software is not subject to copyright protection and is in the public domain
Company: National Institute of Standards and Technology
| Field Summary | |
|---|---|
static java.lang.String |
CYLINDER_WALL
|
static java.lang.String |
END_CAP_0
|
static java.lang.String |
END_CAP_1
|
static java.lang.String |
NOT_NEAR
|
| Constructor Summary | |
|---|---|
CylindricalShape(double[] end0,
double[] end1,
double radius)
MCSS_CylindricalShape - Create a cylindrical shape from the end points specified with the specified radius. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone(java.lang.Object obj)
|
boolean |
contains(double[] pos)
contains - Is the specified point inside the item represented by this Shape interface? A point on the interface between two Shapes is considered to be inside both Shapes. |
double[] |
getEnd0()
getEnd0 - Get one end point of the cylinder axis. |
double[] |
getEnd1()
getEnd1 - Get one the other end point of the cylinder axis. |
double |
getFirstIntersection(double[] parm0,
double[] parm1)
getFirstIntersection - Consider a ray starting at pos0 towards pos1. |
double |
getLength()
|
double |
getRadius()
getRadius - Returns the radius of the cylinder. |
java.lang.String |
nearWall(double[] parm0,
double[] parm1,
double u)
nearWall - Tests whether the specified u is near one of the walls of the cylinder. |
void |
render(TrajectoryVRML.RenderContext vra,
java.io.Writer wr)
render - Renders the object. |
void |
rotate(double[] pivot,
double phi,
double theta,
double psi)
rotate - Rotate the object around the specified point by phi about the z-axis followed by theta round the y-axis followed by psi around the z-axis. |
java.lang.String |
toString()
|
void |
translate(double[] distance)
translate - Translate this object by the distance specified. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String NOT_NEAR
public static final java.lang.String END_CAP_1
public static final java.lang.String END_CAP_0
public static final java.lang.String CYLINDER_WALL
| Constructor Detail |
|---|
public CylindricalShape(double[] end0,
double[] end1,
double radius)
end0 - double[]end1 - double[]radius - double| Method Detail |
|---|
public java.lang.Object clone(java.lang.Object obj)
public boolean contains(double[] pos)
MonteCarloSS.Shape
contains in interface MonteCarloSS.Shapepos - double[] - a three item array
public double[] getEnd0()
public double[] getEnd1()
public java.lang.String nearWall(double[] parm0,
double[] parm1,
double u)
parm0 - double[]parm1 - double[]u - double
public double getFirstIntersection(double[] parm0,
double[] parm1)
MonteCarloSS.Shape
getFirstIntersection in interface MonteCarloSS.Shapeparm0 - double[] - three element arrayparm1 - double[] - three element array
public void rotate(double[] pivot,
double phi,
double theta,
double psi)
ITransform| [ | cos(phi)*cos(th)*cos(psi)-sin(phi)*sin(psi) | -sin(phi)*cos(th)*cos(psi)-cos(phi)*sin(psi) | sin(th)*cos(psi) | ] |
| [ | sin(phi)*cos(psi)+cos(phi)*cos(th)*sin(psi) | -sin(phi)*cos(th)*sin(psi)+cos(phi)*cos(psi) | sin(th)*sin(psi) | ] |
| [ | -cos(phi)*sin(th) | sin(th)*sin(phi) | cos(th) | ] |
rotate in interface ITransformpivot - double[] - a three-vector specifying the point around which
the rotation is performedphi - doubletheta - doublepsi - doublepublic void translate(double[] distance)
ITransform
translate in interface ITransformdistance - double[] - A three-vector specifying how much to translatepublic double getRadius()
public double getLength()
public java.lang.String toString()
toString in class java.lang.Object
public void render(TrajectoryVRML.RenderContext vra,
java.io.Writer wr)
throws java.io.IOException
TrajectoryVRML.IRender
render in interface TrajectoryVRML.IRendervra - The RenderContext objectwr - The Writer into which to output the results
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||