Esempio n. 1
0
        public override CVector2 GetWave(CVector2 start, float wavenumber, float depth)
        {
            //high n means it's slow.

            CVector2 phase   = -wavenumber * depth * refractiveIndex;
            var      rotated = new CVector2(
                start.X * Complex.Rotate(phase.X.R),
                start.Y * Complex.Rotate(phase.Y.R));

            return(rotated);
        }
Esempio n. 2
0
 public abstract CVector2 GetWave(CVector2 start, float wavenumber, float depth);