JavaGenes, NASA Ames. Written largely by Al Globus

gov.nasa.alsUtility
Class Brick3d

java.lang.Object
  extended bygov.nasa.alsUtility.Brick3d
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Brick3dWithSegments

public class Brick3d
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
protected  DoubleInterval[] intervals
           
 
Constructor Summary
Brick3d(Brick3d other)
           
Brick3d(double x1, double x2, double y1, double y2, double z1, double z2)
           
Brick3d(DoubleInterval x, DoubleInterval y, DoubleInterval z)
           
Brick3d(Vector3d first, Vector3d second)
           
 
Method Summary
 void expandByAddition(double expandBy)
           
 void expandToInclude(Vector3d point)
           
 Vector3d getBottomCornerPoint()
           
 DoubleInterval getInterval(int i)
           
 double getSideLength(int i)
           
 Vector3d getTopCornerPoint()
           
 boolean isInside(Vector3d v)
           
 boolean nearlyEqual(Brick3d other)
           
 java.lang.String toString()
          in tsd (tab separated data) format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

intervals

protected DoubleInterval[] intervals
Constructor Detail

Brick3d

public Brick3d(Brick3d other)

Brick3d

public Brick3d(Vector3d first,
               Vector3d second)

Brick3d

public Brick3d(double x1,
               double x2,
               double y1,
               double y2,
               double z1,
               double z2)

Brick3d

public Brick3d(DoubleInterval x,
               DoubleInterval y,
               DoubleInterval z)
Method Detail

getInterval

public DoubleInterval getInterval(int i)

getBottomCornerPoint

public Vector3d getBottomCornerPoint()

getTopCornerPoint

public Vector3d getTopCornerPoint()

expandByAddition

public void expandByAddition(double expandBy)

expandToInclude

public void expandToInclude(Vector3d point)

isInside

public boolean isInside(Vector3d v)

getSideLength

public double getSideLength(int i)

nearlyEqual

public boolean nearlyEqual(Brick3d other)

toString

public java.lang.String toString()
in tsd (tab separated data) format


JavaGenes, NASA Ames. Written largely by Al Globus