iceCube.uhe.geometry
Class Volume

java.lang.Object
  extended by iceCube.uhe.geometry.Volume
Direct Known Subclasses:
IceCubeVolume

public class Volume
extends java.lang.Object

This class defines the cubic volume. It is used for checking whether the particle is inside or outside of the given volume.


Constructor Summary
Volume(double sizeOfOneSide)
          Constructor.
 
Method Summary
static boolean isInsidePlane(J3Vector r, J3Vector plane)
          Check if the point described by IceCube coordinate is inside the plane.
 boolean isInsideVolume(J3Vector r)
          Check if the point described by IceCube coordinate is inside the volume.
 boolean isInsideVolume(J3Vector r, J3Vector shift)
          Check if the point r - shift described by IceCube coordinate is inside the volume.
 boolean isJ3LineInsideVolume(J3Line line, double axisLengthFrom, double axisLengthTo)
          Check if the given J3Line would pass inside the volome in the range of [axisLengthFrom, axisLengthTo]
 boolean isJ3LineInsideVolume(J3Line line, J3Vector shift, double axisLengthFrom, double axisLengthTo)
          Check if the given J3Line - J3Vector would pass inside the volome in the range of [axisLengthFrom, axisLengthTo]
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Volume

public Volume(double sizeOfOneSide)
Constructor. Set six planes. The origin of the IceCube coordinate (IceCubeCoordinate.java) is ASSUMED to be at the center of the volume.

Method Detail

isInsideVolume

public boolean isInsideVolume(J3Vector r)
Check if the point described by IceCube coordinate is inside the volume. If it's inside, returns true.


isInsideVolume

public boolean isInsideVolume(J3Vector r,
                              J3Vector shift)
Check if the point r - shift described by IceCube coordinate is inside the volume. If it's inside, returns true.


isInsidePlane

public static boolean isInsidePlane(J3Vector r,
                                    J3Vector plane)
Check if the point described by IceCube coordinate is inside the plane. If it's inside, returns true.


isJ3LineInsideVolume

public boolean isJ3LineInsideVolume(J3Line line,
                                    double axisLengthFrom,
                                    double axisLengthTo)
Check if the given J3Line would pass inside the volome in the range of [axisLengthFrom, axisLengthTo]


isJ3LineInsideVolume

public boolean isJ3LineInsideVolume(J3Line line,
                                    J3Vector shift,
                                    double axisLengthFrom,
                                    double axisLengthTo)
Check if the given J3Line - J3Vector would pass inside the volome in the range of [axisLengthFrom, axisLengthTo]