[Delphi (Object Pascal)] Delphi计算两个点的距离 →→→→→进入此内容的聊天室

来自 , 2020-12-15, 写在 Delphi (Object Pascal), 查看 157 次.
URL http://www.code666.cn/view/1387a00f
  1. function DistanceBetweenPoints(const P1, P2: Types.TPoint): Extended; overload;
  2. begin
  3.   Result := Math.Hypot(P1.X - P2.X, P1.Y - P2.Y);
  4. end;

回复 "Delphi计算两个点的距离"

这儿你可以回复上面这条便签

captcha