Sine law and angle calculations