Line slope calculator x+y=12


Enter the coordinates of two different points:
Line slope diagram

Straight line given by points A[2; 10] and B[4; 8]

Calculation:

Slope: m = -1

Slope-intercept form of line: y = -x+12

Canonical form of the line equation: x+y-12 = 0

Parametric form of the line equation:
x = t+2
y = -t+10      ; t ∈ R

Slope angle of line: φ = -45° = -0.7854 rad

X intercept: x0 = 12

Y intercept: y0 = q = 12

Distance line from the origin: d0 = 8.4853

The length of the segment AB: |AB| = 2.8284

Vector: AB = (2; -2)

Normal vector: n = (1; 1)

Midpoint of the segment AB: M = [3; 9]

Perpendicular Bisector equation: 2x-2y+12 = 0


Vector OA = (2; 10) ;   |OA| = 10.198
Vector OB = (4; 8) ;   |OB| = 8.9443
Scalar product OA .OB = 88
Angle ∠ AOB = 15°15'18″ = 0.2663 rad