shortest distance between two curves
is there any easy way for getting the shortest distance between two curves??i mean like finding distance between a point and a curve.
crvprox (curve proximity)

[crvprox]
the straight distance between two place on a map can be measured by a strip of paper and divider.use a ruler to measure the distance between the two places. if the line is quite curved, use a string to determine the distance, and then measure the string. find the scale for the map you're going to use. it might be a ruler bar scale or a written scale, in words or numbers. (a) to my eye, they never have a common speed. that would require the two curves to have the same slope at the same time, which doesn't appear to me to be true.

(b) b is ahead of a but is slowing down and being passed by a, which has been moving at constant speed.

(c) b has an acceleration with greater magnitude. (in fact, the curve for a doesn't show any acceleration at all.)

(d) a has a constant slope, and therefore a constant velocity (and therefore displays no acceleration at all). b starts ahead of a initially with a velocity greater, but then decelerates as it nears t = 4 s. at around t = 3.7 s, b's velocity (slope) has nearly dropped to zero, and it gets passed by a.

if you find this helpful, please select favorite answer! May as well promote my comment to an answer.


You need to add points to a `Curve2D` object, then adjust the control points of the curve, and then finally draw the curve. So here's some simple, almost pseudo code:



```
var array_of_line_points # This already has the vectors which describe our line
for point in array_of_line_points:
  # The "get_perpendicular_vector()" function returns a vector that's a copy of the point, yet has been slid along a line parallel to two neighboring points. The "distance" variable is how far the control point should be from the originating point.
  var control_point1 = get_perpendicular_vector(point, distance)
  var control_point2 = get_perpendicular_vector(point, -distance)
  curve.add_point(point, control_point1, control_point2)
# ...In the draw function
func _draw():
  draw_polyline(curve.get_baked_points(), red, 2.0)

```

I got the inspiration for this from [Rob Spencer's page on Spline Interpolation](http://scaledinnovation.com/analytics/splines/aboutSplines.html). I'd like to make this more thorough (i.e. defining the `get_perpendicular_vector()` function). But this is the best I can currently do. you can find the radius in the following way. 
write the equation of the line that is perpendicular to the given tangent line. this perpendicular goes through the stated center, and intersects the tangent; the perpendicular's slope is the negative reciprocal of the stated tangent line.
find the intersection (point t) of the tangent and radius line--then use the distance formula to find the radius, which is a segment from the stated center to the point t. first draw the directions, i recommand you draw them as vectors (like arrows):

- north points to the top
- south points to the bottom
- east points to the right
- west points to the left

now lets draw a line from the center of your "+"-sign at about a 45 degree angle to the top right.

this is the hiker that travels northeast. now the next hiker is simple, you just draw a line from the center to the east. that would be a straight line.

now we assume that the angle between the two hikers is 45 degrees. because that's one piece of the given information.

let's calculate how far the first hiker has traveled: 7,5 x 2 = 15 km.
let's calculate how far the second hiker has traveled: 6 x 2 = 12 km.

now we can use sine to calculate the distance between the two hikers.
note: please set your calculator on degrees. we call hiker's distance: x.

sin(45) = x / 15
15 * sin(45) = x

now we know the distance between the two hikers.

greetx jtk hint: here, we will proceed by finding out the relative speed between the two cars and then using the formula i.e., time taken$ = \dfrac{{{\text{distance travelled}}}}{{{\text{speed}}}}$ to determine after how many hours these cars will meet each other.complete step-by-step answer:given, distance between the two cars d=160 kmstarting time for both the cars when they left their respective initial positions a and b is 8:10 amspeed of the first car, x=50 km per hourspeed of the second car, y=30 km per hourin order to obtain the relative speed between these two cars which are moving towards each other (i.e., in opposite directions), the individual speeds of these cars will be added.so, the relative speed between the two given cars, r= x+y=50+30=80 km per houras we know that, time taken$ = \dfrac{{{\text{distance travelled}}}}{{{\text{speed}}}}$so, time when both the cars will meet=$\dfrac{{{\text{initial distance between both the cars}}}}{{{\text{relative speed between the cars}}}} = \dfrac{{\text{d}}}{{\text{r}}} = \dfrac{{160}}{{80}} = 2$ hours.after 8:10 am, both the cars which are initially at different places a and b will meet each other in the next 2 hours.therefore, time when they will meet each = 8:10 am + 2 hours = 10:10 amhence, option a is correct.note: in this particular problem, since the given two cars are moving in opposite directions (or moving towards each other) that’s why the individual speed of the cars are added in order to determine the relative speed between them but if they were moving in the same direction then the relative speed between these cars would have been obtained by subtracting the individual speed of these cars. "the best way to find [cheap car insurance](https://getjerry.com/car-insurance/cheap-car-insurance) is to shop around. the more quotes you get, the more likely you'll find something that's more affordable than the $4,000 you're paying now. 

with [jerry](https://getjerry.com/signup), you can get quotes from up to 45 providers in seconds, making the entire process quick and easy. good luck on your new life as an independent woman!" one idea can be videos have frames so, vectorize each frame and calculate dtw between two consecutive frames. this will help in gaining the difference in each frame and perhaps help in classification. hope this helps you. intersecting lines – two lines are intersecting if they have a common point. the common point is called point of intersection. we don’t have access to your account in this community. please contact curve support directly by email ([support@curve.com](mailto:support@curve.com)) or twitter (@askcurve).