Perpendicular

Click three vertices A, B, C to get a point D, such that BD is perpendicular to BA and BC.