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

CompareTo() public method

public CompareTo ( PolygonShape shape ) : bool
shape PolygonShape
return bool
		public bool CompareTo( PolygonShape 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 ( radius == shape.radius && massData == shape.massData );
		}