com.yobotics.simulationconstructionset.util.ground.steppingStones
Class SteppingStone

java.lang.Object
  extended by com.yobotics.simulationconstructionset.util.ground.steppingStones.SteppingStone

public class SteppingStone
extends java.lang.Object

Title:

Description:

Copyright: Copyright (c) 2007

Company:

Version:
1.0
Author:
not attributable

Constructor Summary
SteppingStone(java.lang.String name, double baseZ, double height, java.util.ArrayList<javax.vecmath.Point2d> points, us.ihmc.utilities.math.geometry.ConvexPolygon2d footPolygon)
           
 
Method Summary
 LinkGraphics createLinkGraphics(javax.media.j3d.Appearance appearance)
           
static SteppingStone createRectangularStone(java.lang.String name, double xMin, double xMax, double yMin, double yMax, double baseZ, double height, us.ihmc.utilities.math.geometry.ConvexPolygon2d shrunkenPolygon)
           
static SteppingStone generateRandomCicularStone(java.lang.String name, java.util.Random random, double xCenter, double yCenter, double baseZ, double height, double radius, us.ihmc.utilities.math.geometry.ConvexPolygon2d shrunkenPolygon)
           
static SteppingStone generateRandomPolygonalStone(java.lang.String name, java.util.Random random, double xCenter, double yCenter, double baseZ, double height, double radius, int numSides, us.ihmc.utilities.math.geometry.ConvexPolygon2d shrunkenPolygon)
           
static SteppingStone generateRegularPolygonalStone(java.lang.String name, double xCenter, double yCenter, double baseZ, double height, double radius, int numSides, us.ihmc.utilities.math.geometry.ConvexPolygon2d shrunkenPolygon)
           
 us.ihmc.utilities.math.geometry.ConvexPolygon2d getConvexPolygon2d()
           
 double getHeight()
           
 java.lang.String getName()
           
 us.ihmc.utilities.math.geometry.ConvexPolygon2d getShrunkenConvexPolygon2d()
           
 boolean intersectsLocation(double x, double y)
          intersectsLocation
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SteppingStone

public SteppingStone(java.lang.String name,
                     double baseZ,
                     double height,
                     java.util.ArrayList<javax.vecmath.Point2d> points,
                     us.ihmc.utilities.math.geometry.ConvexPolygon2d footPolygon)
Method Detail

getName

public java.lang.String getName()

getHeight

public double getHeight()

getConvexPolygon2d

public us.ihmc.utilities.math.geometry.ConvexPolygon2d getConvexPolygon2d()

getShrunkenConvexPolygon2d

public us.ihmc.utilities.math.geometry.ConvexPolygon2d getShrunkenConvexPolygon2d()

createLinkGraphics

public LinkGraphics createLinkGraphics(javax.media.j3d.Appearance appearance)

intersectsLocation

public boolean intersectsLocation(double x,
                                  double y)
intersectsLocation

Parameters:
x - double
y - double
Returns:
boolean

generateRandomCicularStone

public static SteppingStone generateRandomCicularStone(java.lang.String name,
                                                       java.util.Random random,
                                                       double xCenter,
                                                       double yCenter,
                                                       double baseZ,
                                                       double height,
                                                       double radius,
                                                       us.ihmc.utilities.math.geometry.ConvexPolygon2d shrunkenPolygon)

createRectangularStone

public static SteppingStone createRectangularStone(java.lang.String name,
                                                   double xMin,
                                                   double xMax,
                                                   double yMin,
                                                   double yMax,
                                                   double baseZ,
                                                   double height,
                                                   us.ihmc.utilities.math.geometry.ConvexPolygon2d shrunkenPolygon)

generateRandomPolygonalStone

public static SteppingStone generateRandomPolygonalStone(java.lang.String name,
                                                         java.util.Random random,
                                                         double xCenter,
                                                         double yCenter,
                                                         double baseZ,
                                                         double height,
                                                         double radius,
                                                         int numSides,
                                                         us.ihmc.utilities.math.geometry.ConvexPolygon2d shrunkenPolygon)

generateRegularPolygonalStone

public static SteppingStone generateRegularPolygonalStone(java.lang.String name,
                                                          double xCenter,
                                                          double yCenter,
                                                          double baseZ,
                                                          double height,
                                                          double radius,
                                                          int numSides,
                                                          us.ihmc.utilities.math.geometry.ConvexPolygon2d shrunkenPolygon)