Here you can find the source of areDifferentAnchorPoints(Point2D p1, Point2D p2)
public static boolean areDifferentAnchorPoints(Point2D p1, Point2D p2)
//package com.java2s; //License from project: Open Source License import java.awt.geom.Point2D; public class Main { public static final double SAME_ANCHOR_POINT_THRESHOLD = 0.1; public static boolean areDifferentAnchorPoints(Point2D p1, Point2D p2) { return p1.distance(p2) > SAME_ANCHOR_POINT_THRESHOLD; }//from ww w . ja v a 2 s.c om }