Distance Graphic Calculation
Declaration:
FUNCTION Distance ( x1 :REAL;
y1 :REAL;
x2 :REAL;
y2 :REAL
) :REAL ;
Description:
Function Distance returns the distance between the two specified coordinate locations.
説明
指定した2点間の距離を返します。
Parameters:
x1 | X coordinate of first point. | 1点目のX座標 |
y1 | Y coordinate of first point. | 1点目のY座標 |
x2 | X coordinate of second point. | 2点目のX座標 |
y2 | Y coordinate of second point. | 2点目のY座標 |
Example:
d:=Distance(0,2,4,5);
{returns the distance between (0,2) and (4,5)}
See Also:
Norm