Engineering ToolBox - Resources, Tools and Basic Information for Engineering and Design of Technical Applications!

Cartesian Coordinate System - Distance and Intermediate Position Between Two Points

Distance and intermediate position between two point in a cartesian x and y coordinate system.

cartesian coordinate system - distance between two points

In the rectangular Cartesian coordinate system the coordinate axes are perpendicular to one another and the same unit length is chosen on the two axes.

The distance between two points in Cartesian x and y coordinate system can be calculated as

$$ d(P_1, P_2) = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2} \tag{1}$$

Example - Distance between two points

For point P1 the coordinates are x1 = 4, y1 = 5, and for point P2 the coordinates are x2 = 7, y2 = 9.

The distance between the points can be calculated as

$$ d(P_1, P_2) = \sqrt{(7 - 4)^2 + (9 - 5)^2} = \underline {5} $$

Intermediate position between two points

The intermediate position between two point in the cartesian coordinate system can be calculated as

$$ x ={ (r_1 x_1 + r_2 x_2) \over (r_1 + r_2 )} \tag{2}$$

$$ y = {(r_1 y_1 + r_2 y_2)  \over (r_1 + r_2 ) }\tag{3}$$

where

r1 = ratio of the distance between P1 to P - to the distance of P1 to P2

r2 = ratio of the distance between P2 to P - to the distance of P1 to P2

For the midpoint between P1 and P2:

$$ r_1 = r_2 = 1 \tag{4}$$

- and eq. 2 and 3 can be expressed as

$$ x ={ (x_1 + x_2) \over 2} \tag{2a}$$

$$ y = {(y_1 + y_2)  \over 2}\tag{3a}$$

Example - Midpoint on Line

The midpoint on the line in the example above can be calculated as

$$ x ={ (4 + 7) \over 2 } = \underline {5.5} $$

$$ y = {(5 + 9)  \over 2 } = \underline {7} $$

Related Topics

  • Mathematics

    Mathematical rules and laws - numbers, areas, volumes, exponents, trigonometric functions and more.

Related Documents

Search

Search is the most efficient way to navigate the Engineering ToolBox.

Engineering ToolBox - SketchUp Extension - Online 3D modeling!

3D Engineering ToolBox Extension to SketchUp - add parametric components to your SketchUp model

Add standard and customized parametric components - like flange beams, lumbers, piping, stairs and more - to your Sketchup model with the Engineering ToolBox - SketchUp Extension - enabled for use with older versions of the amazing SketchUp Make and the newer "up to date" SketchUp Pro . Add the Engineering ToolBox extension to your SketchUp Make/Pro from the Extension Warehouse !

Translate this Page

Translate this page to Your Own Language .

About the Engineering ToolBox!

Privacy Policy

We don't collect information from our users. More about

We use a third-party to provide monetization technologies for our site. You can review their privacy and cookie policy here.

You can change your privacy settings by clicking the following button: .

Citation

This page can be cited as

  • The Engineering ToolBox (2022). Cartesian Coordinate System - Distance and Intermediate Position Between Two Points. [online] Available at: https://www.engineeringtoolbox.com/cartesian-coordinate-system-distance-between-two-points-d_2194.html [Accessed Day Month Year].

Modify the access date according your visit.

3D Engineering ToolBox - draw and model technical applications! 2D Engineering ToolBox - create and share online diagram drawing templates! Engineering ToolBox Apps - mobile online and offline engineering applications!

Unit Converter

















































9.26.9

.