protected boolean localIsWithin(final double x, final double y, final double z) { // If present within *any* plane, then it is a member, except where there are holes. boolean isMember = false; for (final SidedPlane edge : edges) { if (edge.isWithin(x, y, z)) { isMember = true; break; } } return isMember; }
protected boolean localIsWithin(final double x, final double y, final double z) { for (final SidedPlane edge : edges) { if (!edge.isWithin(x, y, z)) return false; } return true; }
@Override public boolean isWithin(final double x, final double y, final double z) { if (circlePlane == null) { return true; } // Fastest way of determining membership return circlePlane.isWithin(x, y, z); }
/** Check if point is within this segment. *@param x is the point x. *@param y is the point y. *@param z is the point z. *@return true of within. */ public boolean isWithin(final double x, final double y, final double z) { return startCutoffPlane.isWithin(x, y, z) && endCutoffPlane.isWithin(x, y, z) && normalizedConnectingPlane.evaluateIsZero(x, y, z); }
@Override public boolean isWithin(final double x, final double y, final double z) { return plane.evaluateIsZero(x, y, z) && boundingPlane.isWithin(x, y, z); }