Ejemplo n.º 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;
        }
Ejemplo n.º 2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="other"></param>
        public Grid2d(Grid2d other)
        {
            _x = other._x;
            _y = other._y;

            _dx = other._dx;
            _dy = other._dy;

            _dxInv = other._dxInv;
            _dyInv = other._dyInv;

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

            _wrapModeX = other._wrapModeX;
            _wrapModeY = other._wrapModeY;
        }
Ejemplo n.º 3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="grid"></param>
 /// <param name="sampleMode"></param>
 public GridField2d(Grid2d grid, SampleMode sampleMode = SampleMode.Linear)
     : base(grid)
 {
     _values    = new T[Count];
     SampleMode = sampleMode;
 }
Ejemplo n.º 4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="other"></param>
 /// <param name="sampleMode"></param>
 public GridField2dDouble(Grid2d other)
     : base(other)
 {
 }
Ejemplo n.º 5
0
 /// <inheritdoc />
 public override GridField2d <double> Create(Grid2d grid)
 {
     return(new GridField2dDouble(grid));
 }
Ejemplo n.º 6
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="other"></param>
 /// <param name="sampleMode"></param>
 public GridScalarField2d(Grid2d other, SampleMode sampleMode = SampleMode.Linear)
     : base(other, sampleMode)
 {
 }
Ejemplo n.º 7
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);
 }
Ejemplo n.º 8
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="countX"></param>
 /// <param name="countY"></param>
 /// <param name="countZ"></param>
 /// <returns></returns>
 public abstract GridField2d <T> Create(Grid2d grid);
Ejemplo n.º 9
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="other"></param>
 /// <param name="sampleMode"></param>
 public GridField2dVec2d(Grid2d other)
     : base(other)
 {
 }
Ejemplo n.º 10
0
 /// <inheritdoc />
 public override GridField2d <Vec2d> Create(Grid2d grid)
 {
     return(new GridField2dVec2d(grid));
 }