We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38958d0 commit f853a2bCopy full SHA for f853a2b
1 file changed
src/geom/mesh/Face.js
@@ -258,7 +258,7 @@ var Face = new Class({
258
var v2 = this.vertex2;
259
var v3 = this.vertex3;
260
261
- return (v2.x - v1.x) * (v3.y - v1.y) - (v2.y - v1.y) * (v3.x - v1.x) >= 0;
+ return (v2.vx - v1.vx) * (v3.vy - v1.vy) - (v2.vy - v1.vy) * (v3.vx - v1.vx) >= 0;
262
},
263
264
/**
@@ -323,7 +323,7 @@ var Face = new Class({
323
324
325
326
- return (v1.z + v2.z + v3.z) / 3;
+ return (v1.vz + v2.vz + v3.vz) / 3;
327
}
328
329
0 commit comments