Exemplo n.º 1
0
        /// Builds an aggregated list of all points contained in all shapes
        //-----------------------------------------------------------------------

        //
        //ORIGINAL LINE: List<Vector2> getPoints() const
        public std_vector <Vector2> getPoints()
        {
            std_vector <Vector2> result = new std_vector <Vector2>();

            for (int i = 0; i < mShapes.Count; i++)
            {
                Vector2[] points = mShapes[i].getPoints();
                //
                //result.insert(result.end(), points.GetEnumerator(), points.end());
                result.AddRange(points);
            }
            return(result);
        }
Exemplo n.º 2
0
 /// Appends another path at the end of this one
 public Path appendPath(Path other)
 {
     //mPoints.insert(mPoints.end(), other.mPoints.begin(), other.mPoints.end());
     mPoints.AddRange(other.mPoints.ToArray());
     return(this);
 }