예제 #1
0
파일: PathStorage.cs 프로젝트: djlw78/Mosa
        //--------------------------------------------------------------------
        public void transform_all_paths(Transform.Affine trans)
        {
            uint idx;
            uint num_ver = m_vertices.total_vertices();

            for (idx = 0; idx < num_ver; idx++)
            {
                double x, y;
                if (Path.IsVertex(m_vertices.vertex(idx, out x, out y)))
                {
                    trans.Transform(ref x, ref y);
                    m_vertices.modify_vertex(idx, x, y);
                }
            }
        }
예제 #2
0
파일: PathStorage.cs 프로젝트: djlw78/Mosa
        public void transform(Transform.Affine trans, uint path_id)
        {
            uint num_ver = m_vertices.total_vertices();

            for (; path_id < num_ver; path_id++)
            {
                double x, y;
                uint   PathAndFlags = m_vertices.vertex(path_id, out x, out y);
                if (Path.IsStop(PathAndFlags))
                {
                    break;
                }
                if (Path.IsVertex(PathAndFlags))
                {
                    trans.Transform(ref x, ref y);
                    m_vertices.modify_vertex(path_id, x, y);
                }
            }
        }