private void testRandomPoints(int numberOfPointsToTest, BoundingBox2D rangeOfPointsToTest, boolean assertPositionConditions, boolean assertPointConditions) throws InsufficientDataException { double minX = rangeOfPointsToTest.getMinPoint().getX(); double maxX = rangeOfPointsToTest.getMaxPoint().getX(); double minY = rangeOfPointsToTest.getMinPoint().getY(); double maxY = rangeOfPointsToTest.getMaxPoint().getY(); for (int i = 0; i < numberOfPointsToTest; i++) { soleX.set(RandomNumbers.nextDouble(random, minX, maxX)); soleY.set(RandomNumbers.nextDouble(random, minY, maxY)); soleYaw.set(RandomNumbers.nextDouble(random, Math.PI)); testAPoint(assertPositionConditions, assertPointConditions); } }
private void testAPoint(boolean assertPositionConditions, boolean assertPointConditions) throws InsufficientDataException { FootSpoof footSpoof = new FootSpoof("footSpoof"); testAPoint(assertPositionConditions, assertPointConditions, footSpoof); }
public void testAPoint(double soleX, double soleY, double soleYaw, boolean assertPositionConditions, boolean assertPointConditions, ContactablePlaneBody footstepBody) throws InsufficientDataException { this.soleX.set(soleX); this.soleY.set(soleY); this.soleYaw.set(soleYaw); testAPoint(assertPositionConditions, assertPointConditions, footstepBody); }
private void testAPoint(double soleX, double soleY, double soleYaw, boolean assertPositionConditions, boolean assertPointConditions) throws InsufficientDataException { this.soleX.set(soleX); this.soleY.set(soleY); this.soleYaw.set(soleYaw); testAPoint(assertPositionConditions, assertPointConditions); }