2 Replies Latest reply on Sep 1, 2010 10:41 PM by pbureau76

    Best method to reset a Point

    pbureau76

      Hello,

       

      This is probably a mundane question but I am wondering what is the most efficient method to reset a Point.

       

      1: Allocate a new Point

       

      myPoint = new Point();
      

       

      2: Set the point properties manually

       

      myPoint.x = 0;
      myPoint.y = 0;
      

       

      3: Normalize its length

       

      myPoint.normalize(0)
      

       

       

      Any thoughts??

       

      Pierre