Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/20/17 16:15:38 (6 years ago)
Author:
rhanghof
Message:

#2817:

  • Unittests
  • Bugfixes on the line projection based extreme point creation method
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2817-BinPackingSpeedup/HeuristicLab.Problems.BinPacking/3.3/3D/Geometry/Vector3D.cs

    r15520 r15554  
    1212    public int Z { get; set; }
    1313
    14     public Vector3D() { }
     14    public Vector3D() {
     15      X = 0;
     16      Y = 0;
     17      Z = 0;
     18    }
    1519    public Vector3D(int x, int y, int z) {
    1620      X = x;
     
    8589    }
    8690
     91    public bool IsInside(PackingPosition pos, IEnumerable<ResidualSpace> rs) {
     92      return rs.Any(x => IsInside(pos, x));
     93    }
     94
    8795    public static int operator *(Vector3D a, Vector3D b) {
    8896      return a.X * b.X + a.Y * b.Y + a.Z * b.Z;
Note: See TracChangeset for help on using the changeset viewer.