Quaternion algebra applied polygon theory by Quee