title: How to calculate two points using angle in c# xamarin forms
body: <p>I have a slider for rotating the line. When the slider is slide I want to rotate the line. The slider value is set as an angle. When the page initial loading the line shape is placed as horizontal. The slider value is binded from getting the angle. I have used the below code to calculate the angle between two points.</p>
  <pre><code>const double Rad2Deg = 180.0 / Math.PI;
  private double Angle(Point start, Point end)
  {
      return Math.Atan2(start.Y - end.Y, end.X - start.X) * Rad2Deg;
  }
  </code></pre>
  <p>Now I want to calculate the two points using angle. Please give me a suggestion.</p>