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)); }
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)); }
//public object Clone() public Vector Rotate(RotateMatrix rot) { return((Vector)rot.Rotate(this)); }