lua 两点构造二元一次方程

function PingPaoYunDongShiYanQiAgent:TwoPointForm(X,X1,Y1,X2,Y2)
local A = Y2 - Y1
local B = X1 - X2
local C = X2Y1 - X1Y2
return -(A*X + C ) / B
end

你可能感兴趣的:(lua 两点构造二元一次方程)