Exemple #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="other"></param>
        public Grid2d(Grid2d other)
        {
            _dx = other._dx;
            _dy = other._dy;

            _tx = other._tx;
            _ty = other._ty;

            _txInv = other._txInv;
            _tyInv = other._tyInv;

            _nx = other._nx;
            _ny = other._ny;
            _n  = other._n;

            _wrapX = other._wrapX;
            _wrapY = other._wrapY;
        }
Exemple #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="countX"></param>
 /// <param name="countY"></param>
 /// <param name="countZ"></param>
 /// <returns></returns>
 public abstract GridField2d <T> Create(Grid2d grid);
Exemple #3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="other"></param>
 /// <param name="sampleMode"></param>
 public GridField2dDouble(Grid2d other)
     : base(other)
 {
 }
Exemple #4
0
 /// <inheritdoc />
 public override GridField2d <double> Create(Grid2d grid)
 {
     return(new GridField2dDouble(grid));
 }
Exemple #5
0
 /// <summary>
 /// Returns true if the grid has the same resolution in each dimension as another.
 /// </summary>
 /// <param name="other"></param>
 /// <returns></returns>
 public bool ResolutionEquals(Grid2d other)
 {
     return(_nx == other._nx && _ny == other._ny);
 }
Exemple #6
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="other"></param>
 /// <param name="sampleMode"></param>
 public GridField2dVec2d(Grid2d other)
     : base(other)
 {
 }
Exemple #7
0
 /// <inheritdoc />
 public override GridField2d <Vec2d> Create(Grid2d grid)
 {
     return(new GridField2dVec2d(grid));
 }