Equals returns true if p and q are equal within tolerance Epsilon.
(q *Path)
| 171 | |
| 172 | // Equals returns true if p and q are equal within tolerance Epsilon. |
| 173 | func (p *Path) Equals(q *Path) bool { |
| 174 | if len(p.d) != len(q.d) { |
| 175 | return false |
| 176 | } |
| 177 | for i := 0; i < len(p.d); i++ { |
| 178 | if !Equal(p.d[i], q.d[i]) { |
| 179 | return false |
| 180 | } |
| 181 | } |
| 182 | return true |
| 183 | } |
| 184 | |
| 185 | // Sane returns true if the path is sane, ie. it does not have NaN or infinity values. |
| 186 | func (p *Path) Sane() bool { |