code: function(point1, point2, point){
                  //Area = |(1/2)(x1y2 + x2y3 + x3y1 - x2y1 - x3y2 - x1y3)|   *Area of triangle
                  //Base = v((x1-x2)²+(x1-x2)²)                               *Base of Triangle*
                  //Area = .5*Base*H                                          *Solve for height
                  //Height = Area/.5/Base
      
                  var area = Math.abs(0.5 * (point1.x * point2.y + point2.x * point.y + point.x * point1.y - point2.x * point1.y - point.x * point2.y - point1.x * point.y));
                  var bottom = Math.sqrt(Math.pow(point1.x - point2.x, 2) + Math.pow(point1.y - point2.y, 2));
                  var height = area / bottom * 2;
      
                  return height;
              }
docs: Private function calculating the perpendicular distance
  TODO: check whether OpenLayers.Geometry.LineString::distanceTo() is faster or slower