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)); }
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; }
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()); }
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(); }
public StudCell(double spacing, double height, IfDimension dimension) { Spacing = spacing; Height = height; Dimension = dimension; }
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); }