is there a easy way to take the power or Math.Pow(num,pow) the only way?
2^3 would make it more readable
dxy=Math.Sqrt(Math.Pow(a.StartPoint.X-a.EndPoint.X,2)+Math.Pow(a.StartPoint.Y-a.EndPoint.Y,2));
is there a easy way to take the power or Math.Pow(num,pow) the only way?
2^3 would make it more readable
dxy=Math.Sqrt(Math.Pow(a.StartPoint.X-a.EndPoint.X,2)+Math.Pow(a.StartPoint.Y-a.EndPoint.Y,2));
Looks like this is the only
a = DSCore.Math.Pow(2, 3);
i would try to break the different variables apart into sections for designscript.
makes it easier to manage the computation.
frmX = Math.Pow(a.StartPoint.X-a.EndPoint.X,2);
frmY = Math.Pow(a.StartPoint.Y-a.EndPoint.Y,2);
addXY = frmX + frmY;
output = Math.Sqrt(addXY);
hope this helps…