示例#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 <Vector2> Lissajous <T1, T2, T3, T4>(this Source.SourceDimension <Vector2> self, T1 A, T2 B, T3 a, T4 b, float delta, float fps = 0f)
 {
     return(Source.Lissajous(Syntax.AsEnumerator <float, T1>(A), Syntax.AsEnumerator <float, T2>(B), Syntax.AsEnumerator <float, T3>(a), Syntax.AsEnumerator <float, T4>(b), delta, fps));
 }
示例#3
0
 public static IEnumerator <Vector2> Hypocycloid <T1, T2, T3>(this Source.SourceDimension <Vector2> self, T1 A, T2 B, float rc, float rm, T3 speed, float fps = 0f)
 {
     return(Source.Hypocycloid(Syntax.AsEnumerator <float, T1>(A), Syntax.AsEnumerator <float, T2>(B), rc, rm, Syntax.AsEnumerator <float, T3>(speed), fps));
 }
示例#4
0
 public static IEnumerator <Vector2> Circular <T1, T2>(this Source.SourceDimension <Vector2> self, T1 radius, T2 speed, float fps = 0f)
 {
     return(Source.Circular(Syntax.AsEnumerator <float, T1>(radius), Syntax.AsEnumerator <float, T2>(speed), fps));
 }