|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgov.nist.microanalysis.NISTMonte.ShapeDifference
public class ShapeDifference
Implements the MonteCarloSS.Shape interface to define a Shape that represents the volume in the primary Shape that is not within the volume of the delta Shape. Creates a Shape by removing one Shape from another. ShapeDifference does not implement TrajectoryVRML.IRender as it is hard to imagine how to do this in a reasonably simple manner.
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
| Constructor Summary | |
|---|---|
ShapeDifference(MonteCarloSS.Shape primary,
MonteCarloSS.Shape delta)
MCSS_ShapeDifference - Create a Shape that represents the the primary Shape minus any overlapping regions in the delta Shape. |
|
| Method Summary | |
|---|---|
boolean |
contains(double[] pos)
contains - See MonteCarloSS.contains |
double |
getFirstIntersection(double[] pos0,
double[] pos1)
getFirstIntersection - See MonteCarloSS.getFirstIntersection. |
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. |
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, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ShapeDifference(MonteCarloSS.Shape primary,
MonteCarloSS.Shape delta)
primary - Shapedelta - Shape| Method Detail |
|---|
public boolean contains(double[] pos)
contains in interface MonteCarloSS.Shapepos - double[]
public double getFirstIntersection(double[] pos0,
double[] pos1)
getFirstIntersection in interface MonteCarloSS.Shapepos0 - double[]pos1 - double[]
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 translate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||