static distance(pattern1, pattern2) {
			return MathUtils.distance(pattern1.x, pattern1.y, pattern2.x, pattern2.y);
		}
@param pattern1 first pattern
@param pattern2 second pattern
@return distance between two points