Black Ops III

VectorFromLineToPoint

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 )

Parameters

ParameterSummary
*SegmentAOne point on the line
*SegmentBAnother point on the line
*PThe point

* = mandatory