HomeOperatorsLine/P,P

Line/P,P

Line Through Two Points

Creates a line passing through two existing point references. No selector needed.

What It Does

The Line/P,P operator creates a line passing through two existing point references. Two points uniquely determine a line — no selector is required.

Product Tier: The created line is persistent. The construction points used to define it can be deleted freely after creation — the line geometry is baked at creation time.

Syntax

Line/P1, P2

Quick Input

P: [first point reference] P2: [second point reference]

Direction Selector

No direction selector is required. The result is uniquely determined by the input geometry.

Worked Examples

Setup: P0 = (10, 20) P1 = (50, 60) Line/P0, P1 → L0: through (10,20) and (50,60), slope=1 Setup: P2 = (0, 0) P3 = (80, 0) Line/P2, P3 → L1: horizontal through origin, Y=0

Analytic Rule

Direction from P1 to P2. Slope = (y2-y1)/(x2-x1) Line equation: y - y1 = slope * (x - x1) Geometry baked at creation time. Deleting P1 or P2 does not affect L0. Result: Exact analytic line.

FAQ

Can I delete the points after creating the line?

Yes. Once the line is created, its geometry is baked — the start and end coordinates are stored as fixed values. Deleting the construction points has no effect on the line.

What if both points are at the same location?

XyzPilot returns an error. Two identical points cannot define a unique line.