Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- float x = d.X;
- float y = d.Y;
- float slopeA = f.X - a.X;
- float slopeB = f.Y - a.Y;
- float m = slopeB / slopeA;
- Debug("Slope X: " + slopeA + "\r\nSlope Y: " + slopeB + "\r\nSlope: " + m);
- 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)));
- 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)));
- Vector draw = new Vector((float)z_1_x, (float)z_1_y);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement