Content deleted Content added
Tag: Reverted |
rv unexplained deletion ; Undid revision 991607303 by 45.172.126.19 (talk) |
||
Line 26:
dmax = 0
index = 0
end = length(
'''for''' i = 2 to (end - 1) {
d = perpendicularDistance(PointList[i], Line(PointList[1], PointList[end]))
'''if''' (d > dmax) {
index = i
dmax = d
}
}
ResultList[] = empty;
// If max distance is greater than epsilon, recursively simplify
'''if''' (dmax > epsilon) {
|