Advertisement
imk0tter

Untitled

Dec 15th, 2016
302
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.71 KB | None | 0 0
  1.             float x = d.X;
  2.             float y = d.Y;
  3.  
  4.             float slopeA = f.X - a.X;
  5.             float slopeB = f.Y - a.Y;
  6.  
  7.             float m = slopeB / slopeA;
  8.  
  9.  
  10.             Debug("Slope X: " + slopeA + "\r\nSlope Y: " + slopeB + "\r\nSlope: " + m);
  11.             double z_1_x = (((slopeA) + (((d.X * slopeB) + (d.Y * slopeA * (-1.0))) * slopeB * (-1.0))) * Math.Pow(((Math.Pow(slopeA, 2.0) * (-1.0)) + (Math.Pow(slopeB, 2.0) * (-1.0))), (-1.0)));
  12.             double z_1_y = (((slopeB) + (((d.X * slopeB) + (d.Y * slopeA * (-1.0))) * slopeA)) * Math.Pow(((Math.Pow(slopeA, 2.0) * (-1.0)) + (Math.Pow(slopeB, 2.0) * (-1.0))), (-1.0)));
  13.             Vector draw = new Vector((float)z_1_x, (float)z_1_y);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement