general

Calculate the slope, y-intercept, line equation, angle, and distance between two points in a 2D Cartesian plane. Given coordinates (x1, y1) and (x2, y2), computes slope (rise/run), y-intercept, the equation in slope-intercept form (y = mx + b), angle in degrees relative to the x-axis, and Euclidean distance. Handles vertical and horizontal lines as special cases. Useful for surveying, civil engineering grade calculations, linear regression visualization, and physics kinematics problems.

post/api/slope_calc

Request

  • Base URL: https://calc.engineer
  • URL: https://calc.engineer/api/slope_calc
  • Auth: none declared

Request body

x1number required

X-coordinate of the first point

y1number required

Y-coordinate of the first point

x2number required

X-coordinate of the second point

y2number required

Y-coordinate of the second point

Response

Computed result for slope_calc

toolstring required
versionstring required
computed_atstring date-time required

Changes

No recorded changes to this operation across all 1 revision of this API.