Add QuadDirection and relevant operations