public ArrayList GetScaleArrList(int nTemplateId) { ArrayList arrRet = new ArrayList(); ArrayList arrPoint3d = GetArrList(nTemplateId); foreach (object o in arrPoint3d) { Point3d point = (Point3d)o; fPoint2d fpoint = new fPoint2d(); fpoint.fX = (point.nX - Startx) / TotalWidth; fpoint.fY = (TotalHeight - (point.nY - Starty)) / TotalHeight; arrRet.Add(fpoint); } return(arrRet); }
public ArrayList GetScaleArrList(int nTemplateId) { ArrayList arrRet = new ArrayList(); ArrayList arrPoint3d = GetArrList(nTemplateId); foreach (object o in arrPoint3d) { Point3d point = (Point3d)o; fPoint2d fpoint = new fPoint2d(); fpoint.fX = (point.nX - Startx) / TotalWidth; fpoint.fY = (TotalHeight - (point.nY - Starty)) / TotalHeight; arrRet.Add(fpoint); } return arrRet; }