com.yobotics.simulationconstructionset.util.ground
Class RandomRockyGroundProfile
java.lang.Object
com.yobotics.simulationconstructionset.util.ground.RandomRockyGroundProfile
- All Implemented Interfaces:
- GroundProfile, HeightMap
public class RandomRockyGroundProfile
- extends java.lang.Object
- implements GroundProfile
Constructor Summary |
RandomRockyGroundProfile()
|
RandomRockyGroundProfile(double fieldLength)
|
RandomRockyGroundProfile(double fieldLength,
int numberOfRocks)
|
RandomRockyGroundProfile(double fieldLength,
int numberOfRocks,
double minRockHeight,
double maxRockHeight,
double startRocksAtX)
|
RandomRockyGroundProfile(double fieldLength,
int numberOfRocks,
double minRockHeight,
double maxRockHeight,
double minRockRadius,
double maxRockRadius,
double minRockLength,
double maxRockLength,
double minRockWidth,
double maxRockWidth)
|
RandomRockyGroundProfile(double fieldLength,
int numberOfRocks,
double minRockHeight,
double maxRockHeight,
double minRockRadius,
double maxRockRadius,
double minRockLength,
double maxRockLength,
double minRockWidth,
double maxRockWidth,
double resolution)
|
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 |
getXMax()
|
double |
getXMin()
|
double |
getXTiles()
|
double |
getYMax()
|
double |
getYMin()
|
double |
getYTiles()
|
double |
heightAt(double x_world,
double y_world,
double z_world)
|
boolean |
isClose(double x,
double y,
double z)
|
void |
surfaceNormalAt(double x_world,
double y_world,
double z_world,
javax.vecmath.Vector3d normal)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RandomRockyGroundProfile
public RandomRockyGroundProfile()
RandomRockyGroundProfile
public RandomRockyGroundProfile(double fieldLength)
RandomRockyGroundProfile
public RandomRockyGroundProfile(double fieldLength,
int numberOfRocks)
RandomRockyGroundProfile
public RandomRockyGroundProfile(double fieldLength,
int numberOfRocks,
double minRockHeight,
double maxRockHeight,
double startRocksAtX)
RandomRockyGroundProfile
public RandomRockyGroundProfile(double fieldLength,
int numberOfRocks,
double minRockHeight,
double maxRockHeight,
double minRockRadius,
double maxRockRadius,
double minRockLength,
double maxRockLength,
double minRockWidth,
double maxRockWidth)
RandomRockyGroundProfile
public RandomRockyGroundProfile(double fieldLength,
int numberOfRocks,
double minRockHeight,
double maxRockHeight,
double minRockRadius,
double maxRockRadius,
double minRockLength,
double maxRockLength,
double minRockWidth,
double maxRockWidth,
double resolution)
heightAt
public double heightAt(double x_world,
double y_world,
double z_world)
- Specified by:
heightAt
in interface GroundProfile
- Specified by:
heightAt
in interface HeightMap
surfaceNormalAt
public void surfaceNormalAt(double x_world,
double y_world,
double z_world,
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