我有一个由 X 个 2DPoints 组成的数组,我的目标是做一个布尔运算来检查该数组是否具有指定的 2DPoint。像这样的东西:
Point2D.Double arrayPoints[] = new Point2D.Double[numberOfPoints];
Point2D.Double pointPVariable = new Point2D.Double(positionXVariable,positionYVariable);
arrayPoints[variableNumber] = pointPVariable;
if(arrayPoints has the Point2D(2.45,6.52)){
do this
}
我怎么能做那个布尔运算?非常感谢你!