Normalize inverts the loop if necessary so that the area enclosed by the loop is at most 2*pi.
()
| 874 | // Normalize inverts the loop if necessary so that the area enclosed by the loop |
| 875 | // is at most 2*pi. |
| 876 | func (l *Loop) Normalize() { |
| 877 | if !l.IsNormalized() { |
| 878 | l.Invert() |
| 879 | } |
| 880 | } |
| 881 | |
| 882 | // Invert reverses the order of the loop vertices, effectively complementing the |
| 883 | // region represented by the loop. For example, the loop ABCD (with edges |