ole
Version:
OpenLayers Editor
9 lines (8 loc) • 376 B
TypeScript
export default getProjectedPoint;
/**
* Get projected point P' of P on line e1. Faster version.
* @return projected point p.
* This code comes from section 5 of http://www.sunshine2k.de/coding/java/PointOnLine/PointOnLine.html.
* The dotProduct function had a bug in the html page. It's fixed here.
*/
declare function getProjectedPoint(p: any, v1: any, v2: any): any[];