timelinefx:timelinefx.NearestPointToCircle
Function NearestPointToCircle:Float[]( x1:Float, y1:Float, x2:Float, y2:Float, px:Float, py:Float, r:Float )
Return the nearest point on a line to the center of a circle Returns NearestPointx and NearestPointy x1, y1 and x2, y2 represent the beginning and end line coordinates, and px, py and r represent the circle coordinates and radius.
Parameters
x1 First x point of the line
y1 First y point of the line
x2 Second x point of the line
y2 Second y point of the line
px x coordinate of the circle
py y coordinate of the circle
r Radius of the circle