public static MotionBehaviour <V> Perlin <V>(this MotionBehaviour <V> self, V speed) { Syntax.Resolve <V>(self, (e) => e.Add(Noise.Perlin((float )(object)speed, self.FrameRate)), (e) => e.Add(Noise.Perlin((Vector2)(object)speed, self.FrameRate)), (e) => e.Add(Noise.Perlin((Vector3)(object)speed, self.FrameRate)), (e) => e.Add(Noise.Perlin((Vector4)(object)speed, self.FrameRate)) ); return(self); }
public static MotionBehaviour <V> Fbm <V>(this MotionBehaviour <V> self, V offset, V speed, int octave) { Syntax.Resolve <V>(self, (e) => e.Add(Noise.FbmWith((float )(object)offset, (float )(object)speed, octave, self.FrameRate)), (e) => e.Add(Noise.FbmWith((Vector2)(object)offset, (Vector2)(object)speed, octave, self.FrameRate)), (e) => e.Add(Noise.FbmWith((Vector3)(object)offset, (Vector3)(object)speed, octave, self.FrameRate)), (e) => e.Add(Noise.FbmWith((Vector4)(object)offset, (Vector4)(object)speed, octave, self.FrameRate)) ); return(self); }