@Override
	public float contains( int x, int y ) {
		Path2D path = connection.getClosedConnectionPath();
		if( path == null ) {
			return 0.f;
		}
		for( int i = 0; i <= precision; i++ ) {
			int delta = 2 * i + 1;
			if( path.intersects( x - i, y - i, delta, delta ) ) {
				return (precision + 1.f - i) / (precision + 1.f);
			}
		}
		return 0.f;
	}