anchor.diff:  = Math Cheat Sheet
  -:author: 
  -:revnumber: 
  -:revdate: 2016/03/17 20:48
  -:relfileprefix: ../../
  -:imagesdir: ../..
  -ifdef::env-github,env-browser[:outfilesuffix: .adoc]
  -
  +:revnumber: 2.0
  +:revdate: 2020/07/13
   
   
   == Formulas
  
positive.code: a| direction, position and distance +
  v1,p1,dist
  a|Position at distance +
  p2 
  a|v1.normalzeLocal() +
  scaledDir = v1.mult(dist) +
  p2 = p1.add(scaledDir)
  
negative.code: 
  a|two points, a fraction +
  p1, p2, h=0.5f
  a|the point "`halfway`" (h=0.5f) between the two points +
  new interpolated point p0
  a|p0 = FastMath.interpolateLinear(h,p1,p2)
  
  