Coordinate Geometry Calculator
Coordinate Geometry is evaluated from Line 1 - Point 1, Line 1 - Point 1 and Line 1 - Point 2. The calculation reports Distance, Midpoint and Slope.
Results
About the Coordinate Geometry Calculator
The calculator uses a multi formula configuration. Each reported value is read as a direct evaluation of the stored rules with the declared field formats and units.
Formula basis:
m = (y₂ - y₁)/(x₂ - x₁)
Line: y = mx + b
Angle: θ = arctan(|(m₂ - m₁)/(1+m₁m₂)|)
Interpret the outputs in the order shown by the result fields. Optional inputs affect only the outputs that depend on those variables.
Formula & How It Works
The calculation applies the following relations exactly as recorded in the metadata: m = (y₂ - y₁)/(x₂ - x₁) Line: y = mx + b Angle: θ = arctan(|(m₂ - m₁)/(1+m₁m₂)|) Each output field is produced by substituting the supplied inputs into the relevant relation and then applying the declared rounding or text format.
Worked Examples
Example 1: Two Perpendicular Roads
Inputs
With Line 1 - Point 1 = 0, Line 1 - Point 1 = 0, Line 1 - Point 2 = 4 and Line 1 - Point 2 = 8 as the stated inputs, the result is Distance = 8.944272 units, Midpoint = (2, 4) and Slope = 2. Each value corresponds to the declared output fields.
Example 2: Parallel Highway Lanes
Inputs
With Line 1 - Point 1 = 0, Line 1 - Point 1 = 0, Line 1 - Point 2 = 10 and Line 1 - Point 2 = 5 as the stated inputs, the result is Distance = 11.18034 units, Midpoint = (5, 2.5) and Slope = 0.5. Each value corresponds to the declared output fields.
Example 3: Intersection Point of Two Streets
Inputs
With Line 1 - Point 1 = 0, Line 1 - Point 1 = 1, Line 1 - Point 2 = 4 and Line 1 - Point 2 = 5 as the stated inputs, the result is Distance = 5.656854 units, Midpoint = (2, 3) and Slope = 1. Each value corresponds to the declared output fields.
Example 4: Surveying — Property Corner
Inputs
With Line 1 - Point 1 = 100, Line 1 - Point 1 = 200, Line 1 - Point 2 = 400 and Line 1 - Point 2 = 350 as the stated inputs, the result is Distance = 335.410197 units, Midpoint = (250, 275) and Slope = 0.5. Each value corresponds to the declared output fields.
Common Use Cases
- Find all properties of a line from two points
- Calculate angle between two intersecting lines
- Determine point of intersection of two lines
- Find equation of perpendicular or parallel line