Пример #1
0
        public static IfLocation DivideDistance(IfLocation p1, IfDimension p2)
        {
            var x = p2.XDim / 2;
            var y = p2.YDim / 2;

            return(new IfLocation(p1.X + x, p2.YDim + y, 0));
        }
Пример #2
0
 public Region(double xDim, double yDim, double height, double x, double y, double z, RegionLocation regionLocation, Direction dir)
 {
     IfLocation     = new IfLocation(x, y, z);
     IfDimension    = new IfDimension(xDim, yDim, height);
     RegionLocation = regionLocation;
     Direction      = dir;
 }
Пример #3
0
 public List <StudCell> GetSpace(int floor, double height, IfDimension dimension)
 {
     return(Cells.Where(e =>
     {
         return
         e.Floor == floor &&
         e.Height >= height &&
         e.Dimension.XDim == dimension.XDim &&
         e.Dimension.YDim == dimension.YDim;
     }).ToList());
 }
Пример #4
0
 public WallModel(IfWall ifWall)
 {
     IfWall      = ifWall;
     IfLocation  = new IfLocation(IfWall.IfLocation);
     IfDimension = new IfDimension(IfWall.IfDimension);
     Direction   = IfWall.Direction;
     if (Direction == Direction.Negative)
     {
         Flip(Axis.Other);
         Direction = Direction.Positive;
     }
     MidPoint = Distance3D.DivideDistance(IfWall.IfLocation, IfWall.IfDimension);
     EndPoint = GetEndPoint();
 }
Пример #5
0
 public StudCell(double spacing, double height, IfDimension dimension)
 {
     Spacing   = spacing;
     Height    = height;
     Dimension = dimension;
 }
Пример #6
0
 public Region(double xDim, double yDim, double height, double x, double y, double z)
 {
     IfLocation  = new IfLocation(x, y, z);
     IfDimension = new IfDimension(xDim, yDim, height);
 }