title: Algorithm to verify if a line is intersect another - javafx
body: <p><a href="https://i.stack.imgur.com/T8eic.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/T8eic.jpg" alt="enter image description here"></a></p>
  
  <p>I have a rectangular and line. I need to verify whether a line is intersect that rectangle.</p>
  
  <p>Does anyone know this kind of algorithm in javafx?</p>
  
  <p>I made rectangular with x, y, width, height. </p>
  
  <p>thanks for your help.</p>