Cylindrical() public method

public Cylindrical ( float r, float theta, float y ) : Point3
r float
theta float
y float
return Point3
 public Point3[] CircleCoordinates(float y)
 {
     Point3[] pts = new Point3[30];
     var m = new Matrix3 ();
     for (int i = 0; i < pts.Length; i++)
         pts [i] = m.Cylindrical (r, i * 360 / (pts.Length - 1), y);
     return pts;
 }
Example #2
0
        public Point3[] CircleCoordinates(float y)
        {
            Point3[] pts = new Point3[30];
            Matrix3  m   = new Matrix3();

            for (int i = 0; i < pts.Length; i++)
            {
                pts [i] = m.Cylindrical(r, i * 360 / (pts.Length - 1), y);
            }
            return(pts);
        }