I am a computer programmer and need to find the x and y coordinate of a point that is a defined perpendicular distance from a midpoint. For reference, I have tried to attached an image for reference.
X1, Y1, D, X2, Y2 will be given. I need to find X3, Y3. The shorter line, will always be perpendicular from the larger line and will always intersect the midpoint between (x1, x2) and (x2, y2). I have been struggling with this a while and cannot figure it out. Any help would be greatly appreciated.