修复normalized

This commit is contained in:
yhh
2021-06-29 18:40:34 +08:00
parent 96a41eb2cc
commit ea482dab48
17 changed files with 286 additions and 200 deletions
+2 -2
View File
@@ -34,10 +34,10 @@ module es {
if (index % 3 == 0) {
let delta = Vector2.subtract(point, this._points[index]);
if (index > 0)
this._points[index - 1].add(delta);
this._points[index - 1].addEqual(delta);
if (index + 1 < this._points.length)
this._points[index + 1].add(delta);
this._points[index + 1].addEqual(delta);
}
this._points[index] = point;