title: How to use Pivot Point in Transformations
body: <p>How to translate object using Center point</p>
  
  <p>I have a rectangle which has a center point away from the position of rectangle.</p>
  
  <p>when i rotate rectangle it rotates around its center axis.</p>
  
  <p>if i multyply position before rotation in the modelView matrix</p>
  
  <pre><code>ModelViewMatrix = Rotation * Scaling * Position
  </code></pre>
  
  <p>Suppose if i want to do these translations.</p>
  
  <p>1) Translate the rectangle position by x = 10 units.</p>
  
  <p>1) Rotate the rectangle  by 35 degree with the center point at the center of the rectangle.</p>
  
  <p>2) Translate the rectangle position by x = 10 units.</p>
  
  <p>3) change the x position of the center point by 10 units( rectangle should not be affected by the change in the center point position)</p>
  
  <p><a href="https://i.stack.imgur.com/Eq0kB.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Eq0kB.jpg" alt="enter image description here"></a>4) Now rotate the rectangle using the new center point.</p>
  
  <p>If someone could please guide me how do we use Center point in transformations. 
  How do i build by ModelView Matrix if i am using a center Point.</p>