Various 2D vector-geometry functions for CGPoints.