title: How to pull missile images on top of the lines?
body: <p>As you can see below, the images of the little missiles are not over the lines. 
  How can I create an offset that respects the angle and rotation. I am using linear interpolation to extract x y coordinates between the ends of each straight line. </p>
  
  <pre><code>            float xDiff = end_xpos[i] - start_xpos[i];
              float yDiff = end_ypos[i] - start_ypos[i];
              double degrees = Math.Atan2(yDiff, xDiff) * 180.0 / Math.PI;
              double radians = (Math.PI / 180) * degrees;
  
  
              args.DrawingSession.DrawLine(start_xpos[i], start_ypos[i], end_xpos[i], end_ypos[i], Color.FromArgb(Alpha_line, 255, 255, 255), 2);
  
              pointX = Math.Round((start_xpos[i] + (end_xpos[i] - start_xpos[i]) * percent), 1);
              pointY = Math.Round((start_ypos[i] + (end_ypos[i] - start_ypos[i]) * percent), 1);
  
              Missle_ROT.TransformMatrix = Matrix3x2.CreateRotation((float)radians);
              args.DrawingSession.DrawImage(Missle_ROT, Convert.ToSingle(pointX), Convert.ToSingle(pointY));
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/BhaRX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BhaRX.png" alt="enter image description here"></a></p>