* Return the complement of a slope. * * This method returns the complement of a slope. The complement of a * slope is a slope with raised corner which aren't raised in the given * slope. * * @pre The slope must neither be steep nor a halftile slope. * @param s The #Slope to get the complement. * @return a complement Slope of the given slope. */
| 74 | * @return a complement Slope of the given slope. |
| 75 | */ |
| 76 | inline Slope ComplementSlope(Slope s) |
| 77 | { |
| 78 | assert(!IsSteepSlope(s) && !IsHalftileSlope(s)); |
| 79 | return s ^ SLOPE_ELEVATED; |
| 80 | } |
| 81 | |
| 82 | /** |
| 83 | * Tests if a specific slope has exactly one corner raised. |
no test coverage detected