【发布时间】:2011-12-03 21:49:18
【问题描述】:
我有一个由 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
}
如何进行布尔运算?非常感谢!
【问题讨论】: