// use points A, B, B’, otherwise use points A, B, A’)