Add a function to defien the number of degree for a intersection.