how to calculate the distance of a line?
151817
Distance between two points P(x1,y1) and Q(x2,y2) is given by: d(P, Q) = √ (x2 − x1)2 + (y2 − y1)2 {Distance formula} 2. Distance of a point P(x, y) from the origin is given by d(0,P) = √ x2 + y2. 3.
930504
['import math.', 'def calculateDistance(x1,y1,x2,y2):', 'dist = math.sqrt((x2 - x1)**2 + (y2 - y1)**2)', 'return dist.', 'print calculateDistance(x1, y1, x2, y2)']
1367560
['If the curves are intersecting, then obviously the shortest distance between them is zero.', 'If they do not intersect at any point then:', 'Equate the slopes of the two curves and find the points where the slopes match.', 'Then find the distance between those points.']
1260149
To calculate the distance d of a line segment with endpoints (x1, y1) and (x2, y2) use the formula d (x2 x1)2 (y2 y1)2. To calculate the midpoint of a line segment with endpoints (x1, y1) and (x2, y2) use the formula , .
298900
distance formula. Click the green dot to see it's position. The Y-position of the green dot is equivalent to the measurement of the blue line. Move around the blue dots to change the distance.
223607
['Calculate the total distance travelled by the object - its motion is represented by the velocity-time graph below.', 'Here, the distance travelled can be found by calculating the total area of the shaded sections below the line.', '½ × base × height.', '½ × 4 × 8 = 16 m 2', '(10 – 4) × 8 = 48 m 2']
1360672
The shortest distance between two parallel lines is the length of the perpendicular segment between them. It doesn't matter which perpendicular line you choose, as long as the two points are on the lines.
1075921
['If you want to know the distance to the horizon, first calculate your height of eye. ... ', 'Once you know your height of eye, you simply plug that into the following formula:', '1.17 X the square root of height of eye = distance to the horizon in nautical miles.']
759818
['Right-click the starting point and select "Measure distance." ... ', 'Click the end point (or second point) to create a direct line from the original point and get the distance between the two. ... ', 'If you want to measure the distance between multiple points, simply click the next point on the map.']
628370
['Point. Specifies the location of the infinite line using two points through which it passes. ... ', 'Hor. Creates a horizontal xline passing through a specified point. ... ', 'Ver. Creates a vertical xline passing through a specified point. ... ', 'Bisect.']
1070839
The perimeter of a rectangle (the distance around it) can be found either by finding the sum of the lengths of the sides or by using the formula P = 2l + 2w. Since perimeter is a length or distance, the unit of measure is inches, feet, yards, or miles. The area of the rectangle is found by using the formula A = l × w.
414427
Find Length of a New Line The length of the new line, between the given point and the newly-found intersection point, is the distance between the point and the original line. To find the distance, subtract the x and y values to get the x and y displacements.
470683
['Get the two equations for the lines into slope-intercept form. ... ', 'Set the two equations for y equal to each other.', 'Solve for x. ... ', 'Use this x-coordinate and plug it into either of the original equations for the lines and solve for y.']
1212719
1. Distance between two points P(x1,y1) and Q(x2,y2) is given by: d(P, Q) = √ (x2 − x1)2 + (y2 − y1)2 {Distance formula} 2. Distance of a point P(x, y) from the origin is given by d(0,P) = √ x2 + y2.
1039557
['Step 1: For each (x,y) point calculate x2 and xy.', 'Step 2: Sum all x, y, x2 and xy, which gives us Σx, Σy, Σx2 and Σxy (Σ means "sum up")', 'Step 3: Calculate Slope m:', 'm = N Σ(xy) − Σx Σy N Σ(x2) − (Σx)2', 'Step 4: Calculate Intercept b:', 'b = Σy − m Σx N.', 'Step 5: Assemble the equation of a line.']
352123
Use the formula D2 = X2 + Y2 to find the squared distance between two points. For example, if X = 4 and Y = 5, then D2 = 42 + 52 = 41. Thus, the square of the distance between the coordinates is 41.
577787
Calculate the gradient by subtracting the elevation of the lower contour line on the line you drew from the elevation of the contour line at the other end of the line you drew. Divide the answer by the distance in feet represented by the line you drew.