public Structure(UnitCellDetails unitCellDetails, DiscretisationInfo discretisationInfo) { this.unitCellDetails = unitCellDetails; this.discretisationInfo = discretisationInfo; XCells = SpaceTimeDiscretiser.CalculateDiscreteQuantity(unitCellDetails.XPeriod, discretisationInfo.Dx); YCells = SpaceTimeDiscretiser.CalculateDiscreteQuantity(unitCellDetails.YPeriod, discretisationInfo.Dy); InitialiseStructure(); }
public Detector(double xPosition, double yPosition, double deltaX, double deltaY) : this(SpaceTimeDiscretiser.CalculateDiscreteQuantity(xPosition, deltaX), SpaceTimeDiscretiser.CalculateDiscreteQuantity(yPosition, deltaY)) { X = xPosition; Y = yPosition; }