jerryhalstead

Results 2 comments of jerryhalstead

This is because you are printing out the point coordinates before they are resampled, scaled, rotated, etc... You want the sample array to be the same size as the template...

Also, distance function had a bug, here's what it should be: ``` func distance(_ point1: CGPoint, point2: CGPoint) -> CGFloat { let deltaX = point2.x - point1.x let deltaY =...