com.yobotics.simulationconstructionset.util
Class ShipCorridorGroundProfile

java.lang.Object
  extended by com.yobotics.simulationconstructionset.util.ShipCorridorGroundProfile
All Implemented Interfaces:
GroundProfile

public class ShipCorridorGroundProfile
extends java.lang.Object
implements GroundProfile


Constructor Summary
ShipCorridorGroundProfile(double xMax, double xMin, double yMax, double yMin, double yMaxCorridor, double yMinCorridor, double zGroundPosition, double maxWallHeight)
           
ShipCorridorGroundProfile(double xMax, double xMin, double yMax, double yMin, double yMaxCorridor, double yMinCorridor, double zGroundPosition, double maxWallHeight, double wallInclination)
           
 
Method Summary
 void closestIntersectionAndNormalAt(double x, double y, double z, javax.vecmath.Point3d intersection, javax.vecmath.Vector3d normal)
           
 void closestIntersectionTo(double x, double y, double z, javax.vecmath.Point3d intersection)
           
 double getAbsWallY(double z)
          returns absolute y position of the wall at z position if z is not in the wall, returns -1.0
 double getWallInclination()
           
 double getXMax()
           
 double getXMin()
           
 double getXTiles()
           
 double getYMax()
           
 double getYMaxCorridor()
           
 double getYMin()
           
 double getYMinCorridor()
           
 double getYTiles()
           
 double getzTiles()
           
 double heightAt(double x, double y, double z)
           
 boolean isClose(double x, double y, double z)
           
 void surfaceNormalAt(double x, double y, double z, javax.vecmath.Vector3d normal)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShipCorridorGroundProfile

public ShipCorridorGroundProfile(double xMax,
                                 double xMin,
                                 double yMax,
                                 double yMin,
                                 double yMaxCorridor,
                                 double yMinCorridor,
                                 double zGroundPosition,
                                 double maxWallHeight)

ShipCorridorGroundProfile

public ShipCorridorGroundProfile(double xMax,
                                 double xMin,
                                 double yMax,
                                 double yMin,
                                 double yMaxCorridor,
                                 double yMinCorridor,
                                 double zGroundPosition,
                                 double maxWallHeight,
                                 double wallInclination)
Method Detail

heightAt

public double heightAt(double x,
                       double y,
                       double z)
Specified by:
heightAt in interface GroundProfile

isClose

public boolean isClose(double x,
                       double y,
                       double z)
Specified by:
isClose in interface GroundProfile

closestIntersectionTo

public void closestIntersectionTo(double x,
                                  double y,
                                  double z,
                                  javax.vecmath.Point3d intersection)
Specified by:
closestIntersectionTo in interface GroundProfile

getAbsWallY

public double getAbsWallY(double z)
returns absolute y position of the wall at z position if z is not in the wall, returns -1.0


surfaceNormalAt

public void surfaceNormalAt(double x,
                            double y,
                            double z,
                            javax.vecmath.Vector3d normal)
Specified by:
surfaceNormalAt in interface GroundProfile

closestIntersectionAndNormalAt

public void closestIntersectionAndNormalAt(double x,
                                           double y,
                                           double z,
                                           javax.vecmath.Point3d intersection,
                                           javax.vecmath.Vector3d normal)
Specified by:
closestIntersectionAndNormalAt in interface GroundProfile

getXMin

public double getXMin()
Specified by:
getXMin in interface GroundProfile

getXMax

public double getXMax()
Specified by:
getXMax in interface GroundProfile

getYMin

public double getYMin()
Specified by:
getYMin in interface GroundProfile

getYMax

public double getYMax()
Specified by:
getYMax in interface GroundProfile

getYMaxCorridor

public double getYMaxCorridor()

getYMinCorridor

public double getYMinCorridor()

getXTiles

public double getXTiles()
Specified by:
getXTiles in interface GroundProfile

getYTiles

public double getYTiles()
Specified by:
getYTiles in interface GroundProfile

getzTiles

public double getzTiles()

getWallInclination

public double getWallInclination()