FarseerPhysics.Collision.Shapes.ChainShape.CompareTo C# (CSharp) Method

CompareTo() public method

Compare the chain to another chain
public CompareTo ( ChainShape shape ) : bool
shape ChainShape The other chain
return bool
		public bool CompareTo( ChainShape shape )
		{
			if( vertices.Count != shape.vertices.Count )
				return false;

			for( int i = 0; i < vertices.Count; i++ )
			{
				if( vertices[i] != shape.vertices[i] )
					return false;
			}

			return prevVertex == shape.prevVertex && nextVertex == shape.nextVertex;
		}