title: Get intersection point of rectangle and line
body: <p>I need get intersection point of rectangle and line. 
  I have point B inside rectangle(center of rectangle) and have point A outside. And i need to find point C on one of rectangle borders.
  Also I get width and height of rectangle.</p>
  
  <p><img src="https://i.stack.imgur.com/zi8i8.png" alt="enter image description here"></p>
  
  <p>All this will be <strong>WPF</strong> application, so if any build in functions i will be very happy.</p>