Changeset 15554 for branches/2817-BinPackingSpeedup/HeuristicLab.Problems.BinPacking/3.3/3D/Geometry/Vector3D.cs
- Timestamp:
- 12/20/17 16:15:38 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2817-BinPackingSpeedup/HeuristicLab.Problems.BinPacking/3.3/3D/Geometry/Vector3D.cs
r15520 r15554 12 12 public int Z { get; set; } 13 13 14 public Vector3D() { } 14 public Vector3D() { 15 X = 0; 16 Y = 0; 17 Z = 0; 18 } 15 19 public Vector3D(int x, int y, int z) { 16 20 X = x; … … 85 89 } 86 90 91 public bool IsInside(PackingPosition pos, IEnumerable<ResidualSpace> rs) { 92 return rs.Any(x => IsInside(pos, x)); 93 } 94 87 95 public static int operator *(Vector3D a, Vector3D b) { 88 96 return a.X * b.X + a.Y * b.Y + a.Z * b.Z;
Note: See TracChangeset
for help on using the changeset viewer.