Box2D.Collision.Shapes.ChainShape.Clone C# (CSharp) Метод

Clone() публичный Метод

public Clone ( ) : Shape
Результат Shape
        public override Shape Clone()
        {
            ChainShape clone = new ChainShape();
            clone.CreateChain(Vertices, Count);
            clone.m_prevVertex.Set(m_prevVertex);
            clone.m_nextVertex.Set(m_nextVertex);
            clone.HasPrevVertex = HasPrevVertex;
            clone.HasNextVertex = HasNextVertex;
            return clone;
        }