diff --git a/src/math/Plane.js b/src/math/Plane.js index 198062738fb6e185412a05b674f3c01dbaeda423..bb9816c418c08086b0203d3aa1c09ce874386bfb 100644 --- a/src/math/Plane.js +++ b/src/math/Plane.js @@ -7,6 +7,8 @@ import { Vector3 } from './Vector3'; function Plane( normal, constant ) { + // normal is assumed to be normalized + this.normal = ( normal !== undefined ) ? normal : new Vector3( 1, 0, 0 ); this.constant = ( constant !== undefined ) ? constant : 0;