コード例 #1
0
ファイル: S.cs プロジェクト: acinep/net7mma-1
        /// <summary>
        ///
        /// </summary>
        /// <param name="s"></param>
        /// <param name="f"></param>
        /// <param name="imaginary"></param>
        /// <returns></returns>
        static public System.Numerics.Vector3 Measure(S s, Frequencies.IFrequency f, out System.Numerics.Vector3 imaginary)
        {
            System.Numerics.Vector3 measure = new System.Numerics.Vector3(f.TotalMegahertz * s.Energy.TotalJoules);

            imaginary = s.Imaginary - measure;

            return(s.Real - measure);
        }
コード例 #2
0
ファイル: S.cs プロジェクト: acinep/net7mma-1
        /// <summary>
        ///
        /// </summary>
        /// <param name="s"></param>
        /// <param name="f"></param>
        /// <param name="imaginary"></param>
        /// <returns></returns>
        static public S Entangle(S s, Frequencies.IFrequency f, out System.Numerics.Vector3 imaginary)
        {
            imaginary = s.Real;

            s.Real = s.Imaginary * f.TotalMegahertz;

            s.Imaginary = imaginary * f.TotalMegahertz;

            return(s);
        }