title: How to rotate a vertex around a certain point?
body: <p>Imagine you have two points in 2d space and you need to rotate one of these points by X degrees with the other point acting as a center.</p>
  
  <pre><code>float distX = Math.abs( centerX -point2X );
  float distY = Math.abs( centerY -point2Y );
  
  float dist = FloatMath.sqrt( distX*distX + distY*distY );
  </code></pre>
  
  <p>So far I just got to finding the distance between the two points... any ideas where should I go from that?</p>
  
  <p><img src="https://i.stack.imgur.com/zS1HB.png" alt="enter image description here"></p>