Changeset 15471 for branches/2817-BinPackingSpeedup/HeuristicLab.Problems.BinPacking/3.3/3D/PackingPosition.cs
- Timestamp:
- 11/14/17 15:31:22 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2817-BinPackingSpeedup/HeuristicLab.Problems.BinPacking/3.3/3D/PackingPosition.cs
r15462 r15471 105 105 /// <summary> 106 106 /// Compares two packing positions by their coordinates. 107 /// The order of comparing is z -> x -> y.107 /// The order of comparing is y (height) -> z (depth) -> x (width). 108 108 /// </summary> 109 109 /// <param name="other"></param> 110 110 /// <returns></returns> 111 111 public int CompareTo(PackingPosition other) { 112 int result = Y.CompareTo(other.Y); 113 if (result == 0) 114 result = Z.CompareTo(other.Z); 115 if (result == 0) 116 result = X.CompareTo(other.X); 117 /* 112 118 int result = Z.CompareTo(other.Z); 113 119 if (result == 0) … … 115 121 if (result == 0) 116 122 result = Y.CompareTo(other.Y); 117 123 */ 118 124 return result; 119 125
Note: See TracChangeset
for help on using the changeset viewer.