title: Check which side of a plane points are on
body: <p>I'm trying to take an array of 3D points and a plane and divide the points up into 2 arrays based on which side of the plane they are on. Before I get to heavily into debugging I wanted to post what I'm planning on doing to make sure my understanding of how to do this will work.</p>
  
  <p>Basically I have the plane with 3 points and I use (pseudo code):</p>
  
  <pre><code>var v1 = new vector(plane.b.x-plane.a.x, plane.b.y-plane.a.y, plane.b.z-plane.a.z);
  var v2 = new vector(plane.c.x-plane.a.x, plane.c.y-plane.a.y, plane.c.z-plane.a.z);
  </code></pre>
  
  <p>I take the cross product of these two vectors to get the normal vector.</p>
  
  <p>Then I loop through my array of points and turn them into vectors and calculate the dot product against the normal.</p>
  
  <p>Then i use the dot product to determine the side that the point is on.</p>
  
  <p>Does this sound like it would work?</p>