コード例 #1
0
        public static IEnumerator <V> Sin <V, T1, T2>(this Source.SourceDimension <V> self, T1 radius, T2 freq, float fps = 0f)
        {
            var res = default(IEnumerator <V>);

            Syntax.Resolve <V>(
                () => res = Source.Sin(Syntax.AsEnumerator <float, T1>(radius), Syntax.AsEnumerator <float, T2>(freq), fps) as IEnumerator <V>,
                () => res = Source.Sin(Syntax.AsEnumerator <Vector2, T1>(radius), Syntax.AsEnumerator <float, T2>(freq), fps) as IEnumerator <V>,
                () => res = Source.Sin(Syntax.AsEnumerator <Vector3, T1>(radius), Syntax.AsEnumerator <float, T2>(freq), fps) as IEnumerator <V>,
                () => res = Source.Sin(Syntax.AsEnumerator <Vector4, T1>(radius), Syntax.AsEnumerator <float, T2>(freq), fps) as IEnumerator <V>
                );
            return(res);
        }
コード例 #2
0
 public static IEnumerator <float> Sin(IEnumerator <float> radius, IEnumerator <float> freq, float fps)
 {
     return(Move(Source.Sin(radius, freq, fps)));
 }