|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgov.nist.microanalysis.NISTMonte.SimpleBlock
public class SimpleBlock
Implements the MonteCarloSS.Shape interface for a simple block shaped region. The edges of the block are aligned with the coordinate axes. The extent of the block is defined by two corners.
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 | |
|---|---|
SimpleBlock(double[] corner0,
double[] corner1)
SimpleBlock - Constructs a SimpleBlock, simple shape definition class that implements the Shape interface. |
|
| Method Summary | |
|---|---|
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 |
getFirstIntersection(double[] pos0,
double[] pos1)
getFirstIntersection - Consider a ray starting at pos0 towards pos1. |
void |
render(TrajectoryVRML.RenderContext rc,
java.io.Writer wr)
render - Renders a SimpleBlock as VRML |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleBlock(double[] corner0,
double[] corner1)
corner0 - double[] - The x,y & z coordinates of one cornercorner1 - double[] - The coordinates of the diagonal corner| Method Detail |
|---|
public boolean contains(double[] pos)
MonteCarloSS.Shape
contains in interface MonteCarloSS.Shapepos - double[] - a three item array
public double getFirstIntersection(double[] pos0,
double[] pos1)
MonteCarloSS.Shape
getFirstIntersection in interface MonteCarloSS.Shapepos0 - double[] - three element arraypos1 - double[] - three element array
public void render(TrajectoryVRML.RenderContext rc,
java.io.Writer wr)
throws java.io.IOException
render in interface TrajectoryVRML.IRenderrc - wr -
java.io.IOException - (non-Javadoc)TrajectoryVRML.IRender.render(gov.nist.microanalysis.NISTMonte.TrajectoryVRML.RenderContext,
java.io.Writer)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||