VectorFromLineToPoint( LineA, LineB, P )


Module: Math

Summary:

Given a line and a point P, this returns a vector perpendicular to the line and pointing from the line to P.



Example:

myvector = VectorFromLineToPoint( A, B, P );



Required Args:

  • 1 : <SegmentA> One point on the line
  • 2 : <SegmentB> Another point on the line
  • 3 : <P> The point