title: How can I rotate a 3D array in c#?
body: <p>I have a binary object in a 3d array located in the origin (0,0,0). I need rotate this object dinamically in z axis. How can I rotate that multidimensional array with no fixed size in any angle?</p>
  
  <p>I have created a 3d Point Class:</p>
  
  <pre><code>public class Point3
  {
      public double X { get; set; }
      public double Y { get; set; }
      public double Z { get; set; }
  }
  </code></pre>
  
  <p>I'm thinking in do a foreach in each point and rotate it:</p>
  
  <pre><code>foreach (Point3 p in listPoint3)
  {
      RotatePoint(p, angle);
  }
  </code></pre>
  
  <p>Any suggestion?</p>