Revision 4fde55a0
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/library/DistortedObject.java | ||
---|---|---|
790 | 790 |
/** |
791 | 791 |
* Rotate part of the Object around the Center of the Effect by a certain angle. |
792 | 792 |
* |
793 |
* @param swirl The degree of Swirl. Positive values swirl clockwise.
|
|
793 |
* @param swirl The angle of Swirl (in degrees). Positive values swirl clockwise.
|
|
794 | 794 |
* @param center 2-dimensional Data that, at any given time, returns the Center of the Effect. |
795 | 795 |
* @param region Region that masks the Effect. |
796 | 796 |
* @return ID of the effect added, or -1 if we failed to add one. |
... | ... | |
804 | 804 |
/** |
805 | 805 |
* Rotate the whole Object around the Center of the Effect by a certain angle. |
806 | 806 |
* |
807 |
* @param swirl The degree of Swirl. Positive values swirl clockwise.
|
|
807 |
* @param swirl The angle of Swirl (in degrees). Positive values swirl clockwise.
|
|
808 | 808 |
* @param center 2-dimensional Data that, at any given time, returns the Center of the Effect. |
809 | 809 |
* @return ID of the effect added, or -1 if we failed to add one. |
810 | 810 |
*/ |
... | ... | |
812 | 812 |
{ |
813 | 813 |
return mV.add(EffectNames.SWIRL, swirl, center); |
814 | 814 |
} |
815 |
|
|
816 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
817 |
/** |
|
818 |
* Directional, sinusoidal wave effect. |
|
819 |
* |
|
820 |
* @param wave A 3-dimensional data structure describing the wave: first member is the amplitude, |
|
821 |
* second is the angle (in degrees, as always) the direction of the wave forms with |
|
822 |
* the X-axis, and the third is the wave length. |
|
823 |
* @param center 2-dimensional Data that, at any given time, returns the Center of the Effect. |
|
824 |
* @return ID of the effect added, or -1 if we failed to add one. |
|
825 |
*/ |
|
826 |
public long wave(Data3D wave, Data2D center) |
|
827 |
{ |
|
828 |
return mV.add(EffectNames.WAVE, wave, center); |
|
829 |
} |
|
830 |
|
|
831 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
832 |
/** |
|
833 |
* Directional, sinusoidal wave effect. |
|
834 |
* |
|
835 |
* @param wave A 3-dimensional data structure describing the wave: first member is the amplitude, |
|
836 |
* second is the angle (in degrees, as always) the direction of the wave forms with |
|
837 |
* the X-axis, and the third is the wave length. |
|
838 |
* @param center 2-dimensional Data that, at any given time, returns the Center of the Effect. |
|
839 |
* @param region Region that masks the Effect. |
|
840 |
* @return ID of the effect added, or -1 if we failed to add one. |
|
841 |
*/ |
|
842 |
public long wave(Data3D wave, Data2D center, Data4D region) |
|
843 |
{ |
|
844 |
return mV.add(EffectNames.WAVE, wave, center, region); |
|
845 |
} |
|
815 | 846 |
} |
Also available in: Unified diff
Beginnings of the WAVE effect.