Reflect point along line
Javascript function to reflect point p
along line through points p0
and p1
. Expects three point objects of the type { x: number1, y: number2 }
as input and returns the first point p
reflected on p0
and p1
as output.