<HEAD>
  <SCRIPT SRC="../ganja.js"></SCRIPT>
</HEAD>
<BODY><SCRIPT>
// Create a Clifford Algebra with 3,0,1 metric.
Algebra(3,0,1,()=>{

  // The geometric elements of 3D PGA. 
  // Grade-1 elements (reflections) represent planes. 
  // Grade-2 elements (bireflections or line reflections) represent lines.
  // Grade-3 elements (trireflections or point reflections) represent points.
  var plane = (a,b,c,d)=>(a*1e1 + b*1e2 + c*1e3 + d*1e0).Normalized,
      line  = (...plucker)=>(plucker*[1e01,1e02,1e03,1e12,