make dist and angle return vectors, not matrices