HomeFAQHow do I create a point at the midpoint of a line in Xy...

FAQ

How do I create a point at the midpoint of a line in XyzPilot?

Use Point/Midpoint,L with the line reference. Creates a point at the exact geometric midpoint of the line.

Full Answer

Use Point/Midpoint,L. Specify the line reference. The midpoint coordinates are computed analytically from the line start and end points using the midpoint formula: x_mid = (x1+x2)/2, y_mid = (y1+y2)/2.

XyzPilot Example

L0 = Line from (10,20) to (70,60) Point/Midpoint, L0, 0 → P0 = (40, 40) [(10+70)/2, (20+60)/2] L1 = Line from (0,0) to (100,0) Point/Midpoint, L1, 0 → P1 = (50, 0) [midpoint of horizontal line] Common use: creating a perpendicular bisector Point/Midpoint, L0, 0 → P0 Line/P0, Perpto, L0, Length=50, Dir=Left → L2
← All FAQs Operator Reference Try in XyzPilot →