本文整理了Java中us.ihmc.robotics.quadTree.Box.containsOrEquals()
方法的一些代码示例,展示了Box.containsOrEquals()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Box.containsOrEquals()
方法的具体详情如下:
包路径:us.ihmc.robotics.quadTree.Box
类名称:Box
方法名:containsOrEquals
暂无
代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit
public void getAllPointsWithinBounds(Box bounds, ArrayList<Point3d> pointsToPack)
{
for (Point3d point : points)
{
if (bounds.containsOrEquals(point.getX(), point.getY()))
{
pointsToPack.add(point);
}
}
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
public void getAllPointsWithinBounds(Box bounds, ArrayList<Point3D> pointsToPack)
{
for (Point3D point : points)
{
if (bounds.containsOrEquals(point.getX(), point.getY()))
{
pointsToPack.add(point);
}
}
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
this.bounds.containsOrEquals(NE.bounds);
this.bounds.containsOrEquals(NW.bounds);
this.bounds.containsOrEquals(SE.bounds);
this.bounds.containsOrEquals(SW.bounds);
代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit
this.bounds.containsOrEquals(NE.bounds);
this.bounds.containsOrEquals(NW.bounds);
this.bounds.containsOrEquals(SE.bounds);
this.bounds.containsOrEquals(SW.bounds);
代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit
public void checkRepInvarients(Box bounds)
{
if ((points == null) || (points.isEmpty()))
{
throw new RuntimeException("All leaves should have at least one point");
}
if ((points != null) && (!points.isEmpty()))
{
for (Point3d point : points)
{
if (!bounds.containsOrEquals(point.getX(), point.getY()))
throw new RuntimeException();
}
}
if ((averagePoint != null) && (Double.isNaN(averagePoint.getX())))
{
Point3d averageCheck = new Point3d(averagePoint);
averagePoint.set(Double.NaN, Double.NaN, Double.NaN);
if (averageCheck.distance(this.getAveragePoint()) > 1e-7)
throw new RuntimeException();
}
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
public void checkRepInvarients(Box bounds)
{
if ((points == null) || (points.isEmpty()))
{
throw new RuntimeException("All leaves should have at least one point");
}
if ((points != null) && (!points.isEmpty()))
{
for (Point3D point : points)
{
if (!bounds.containsOrEquals(point.getX(), point.getY()))
throw new RuntimeException();
}
}
if ((averagePoint != null) && (Double.isNaN(averagePoint.getX())))
{
Point3D averageCheck = new Point3D(averagePoint);
averagePoint.set(Double.NaN, Double.NaN, Double.NaN);
if (averageCheck.distance(this.getAveragePoint()) > 1e-7)
throw new RuntimeException();
}
}
代码示例来源:origin: us.ihmc/SensorProcessing
public ArrayList<Point3d> readPointsFromBufferedReader(BufferedReader bufferedReader, int skipPoints, int maxNumberOfPoints, Box bounds, double maxZ) throws IOException
{
ArrayList<Point3d> points = new ArrayList<Point3d>();
String inputString;
int numPoints = 0;
while (((inputString = bufferedReader.readLine()) != null) && (numPoints < maxNumberOfPoints))
{
Point3d point = parsePoint3d(inputString);
if ((point != null) && (bounds.containsOrEquals(point.getX(), point.getY())) && (point.getZ() < maxZ))
{
if (noiseAmplitudeForReading > 0.0)
{
point.add(RandomTools.generateRandomPoint(random, noiseAmplitudeForReading, noiseAmplitudeForReading, noiseAmplitudeForReading));
}
points.add(point);
numPoints++;
}
}
bufferedReader.close();
return points;
}
代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit
public synchronized double getHeightAtPoint(double x, double y)
{
if (!bounds.containsOrEquals(x, y))
return Double.NaN;
nearestPointForHeightAt.set(Double.NaN, Double.NaN, Double.NaN);
PointAndDistance pointAndDistance = new PointAndDistance(nearestPointForHeightAt,
quadTreeParameters.getMaxAllowableXYDistanceForAPointToBeConsideredClose());
root.getClosestPointAndDistance(x, y, pointAndDistance);
double heightToReturn = nearestPointForHeightAt.getZ();
if (Double.isNaN(heightToReturn))
{
heightToReturn = root.getDefaultHeightWhenNoPoints();
}
return heightToReturn;
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
public synchronized double getHeightAtPoint(double x, double y)
{
if (!bounds.containsOrEquals(x, y))
return Double.NaN;
nearestPointForHeightAt.set(Double.NaN, Double.NaN, Double.NaN);
PointAndDistance pointAndDistance = new PointAndDistance(nearestPointForHeightAt,
quadTreeParameters.getMaxAllowableXYDistanceForAPointToBeConsideredClose());
root.getClosestPointAndDistance(x, y, pointAndDistance);
double heightToReturn = nearestPointForHeightAt.getZ();
if (Double.isNaN(heightToReturn))
{
heightToReturn = root.getDefaultHeightWhenNoPoints();
}
return heightToReturn;
}
代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit
if (bounds.containsOrEquals(this.bounds))
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
if (bounds.containsOrEquals(this.bounds))
内容来源于网络,如有侵权,请联系作者删除!