Deriving the beta-constraints for geometric continuity of parametric curves