예제 #1
0
        public Polygon Rotate(RotateMatrix rot)
        {
            int count = 0;

            Vector[] retVec = new Vector[Len];
            foreach (Vector vec in vectors)
            {
                retVec[count++] = vec.Rotate(rot);
            }
            return(new Polygon(ZVal, Zero, retVec));
        }
예제 #2
0
        public Shape3D Rotate(RotateMatrix mat)
        {
            int count = 0;

            Polygon[] newP = new Polygon[poly.Length];
            foreach (Polygon p in poly)
            {
                newP[count++] = p.Rotate(mat);
            }
            return(new Shape3D(newP));
        }
예제 #3
0
        //public object Clone()

        public Vector Rotate(RotateMatrix rot)
        {
            return((Vector)rot.Rotate(this));
        }