Curve distance equation

Blitz3D Forums/Blitz3D Programming/Curve distance equation

Two ways of finding the length of a curve:

1.If the curve is represented by a function of form

y=f(x)

Perform the following operation:

(I will use words as I cannot enter symbols in here)

Integrate between Xfinal and Xinitial the following
function with respect to x:

(Square Root of (1 + f'(x)^2))dx



2.If the curve is represented by a parametric equation
like y=y(s), x=x(s)

Integrate between sfinal and sinitial the following function
with respect to s:

(Square Root of (y'(s)^2 + x'(s)^2))ds


Performing that operation will give you the length of
a line.