com.yobotics.simulationconstructionset.util.ground
Class RotatableRampTerrainObject

java.lang.Object
  extended by com.yobotics.simulationconstructionset.util.ground.RotatableRampTerrainObject
All Implemented Interfaces:
TerrainObject, GroundProfile, HeightMap

public class RotatableRampTerrainObject
extends java.lang.Object
implements TerrainObject


Constructor Summary
RotatableRampTerrainObject(double xStart, double yStart, double xEnd, double yEnd, double height, double degreesYaw)
           
RotatableRampTerrainObject(double xStartBeforeYaw, double yStartBeforeYaw, double xEndBeforeYaw, double yEndBeforeYaw, double height, double degreesYaw, AppearanceDefinition appearance)
           
 
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)
           
 BoundingBox3d getBoundingBox()
           
 Graphics3DObject getLinkGraphics()
           
 double getXMax()
           
 double getXMin()
           
 double getXTiles()
           
 double getYMax()
           
 double getYMin()
           
 double getYTiles()
           
 double heightAt(double xGlobal, double yGlobal, double zGlobal)
           
 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

RotatableRampTerrainObject

public RotatableRampTerrainObject(double xStartBeforeYaw,
                                  double yStartBeforeYaw,
                                  double xEndBeforeYaw,
                                  double yEndBeforeYaw,
                                  double height,
                                  double degreesYaw,
                                  AppearanceDefinition appearance)
Parameters:
xStartBeforeYaw -
yStartBeforeYaw -
xEndBeforeYaw -
yEndBeforeYaw -
height -
degreesYaw -
appearance -

RotatableRampTerrainObject

public RotatableRampTerrainObject(double xStart,
                                  double yStart,
                                  double xEnd,
                                  double yEnd,
                                  double height,
                                  double degreesYaw)
Method Detail

getLinkGraphics

public Graphics3DObject getLinkGraphics()
Specified by:
getLinkGraphics in interface TerrainObject

heightAt

public double heightAt(double xGlobal,
                       double yGlobal,
                       double zGlobal)
Specified by:
heightAt in interface GroundProfile
Specified by:
heightAt in interface HeightMap

surfaceNormalAt

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

closestIntersectionTo

public void closestIntersectionTo(double x,
                                  double y,
                                  double z,
                                  javax.vecmath.Point3d intersection)
Specified by:
closestIntersectionTo 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

isClose

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

getXMin

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

getYMin

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

getXMax

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

getYMax

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

getXTiles

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

getYTiles

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

getBoundingBox

public BoundingBox3d getBoundingBox()
Specified by:
getBoundingBox in interface TerrainObject