In Objective-C I'm starting to work with CGPoints
and when I need to add two of them the way I'm doing it is this:
CGPoint p1 = CGPointMake(3, 3);
CGPoint p2 = CGPointMake(8, 8);
CGPoint p3 = CGPointMake(p2.x-p1.x, p2.y-p1.y);
I would like to be able to just do:
CGPoint p3 = p2 - p1;
Is that possible?