示例#1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="other"></param>
        public Grid3d(Grid3d other)
        {
            _dx = other._dx;
            _dy = other._dy;
            _dz = other._dz;

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

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

            _nx  = other._nx;
            _ny  = other._ny;
            _nz  = other._nz;
            _nxy = other._nxy;
            _n   = other._n;

            _wrapX = other._wrapX;
            _wrapY = other._wrapY;
            _wrapZ = other._wrapZ;
        }
示例#2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="other"></param>
        public Grid3d(Grid3d other)
        {
            _x = other._x;
            _y = other._y;
            _z = other._z;

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

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

            _nx  = other._nx;
            _ny  = other._ny;
            _nz  = other._nz;
            _nxy = other._nxy;
            _n   = other._n;

            _wrapModeX = other._wrapModeX;
            _wrapModeY = other._wrapModeY;
            _wrapModeZ = other._wrapModeZ;
        }
示例#3
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(Grid3d other)
 {
     return(_nx == other._nx && _ny == other._ny && _nz == other._nz);
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="other"></param>
 public GridField3dDouble(Grid3d other)
     : base(other)
 {
 }
 /// <inheritdoc />
 public override GridField3d <double> Create(Grid3d grid)
 {
     return(new GridField3dDouble(grid));
 }
示例#6
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="other"></param>
 public GridField3dVec3d(Grid3d other)
     : base(other)
 {
 }
示例#7
0
 /// <inheritdoc />
 public override GridField3d <Vec3d> Create(Grid3d grid)
 {
     return(new GridField3dVec3d(grid));
 }
示例#8
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="other"></param>
 /// <param name="sampleMode"></param>
 public GridVectorField3d(Grid3d other, SampleMode sampleMode = SampleMode.Linear)
     : base(other, sampleMode)
 {
 }
示例#9
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="countX"></param>
 /// <param name="countY"></param>
 /// <param name="countZ"></param>
 /// <returns></returns>
 public abstract GridField3d <T> Create(Grid3d grid);
示例#10
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="grid"></param>
 /// <param name="sampleMode"></param>
 public GridField3d(Grid3d grid, SampleMode sampleMode = SampleMode.Linear)
     : base(grid)
 {
     _values    = new T[Count];
     SampleMode = sampleMode;
 }