Project

General

Profile

« Previous | Next » 

Revision 82ee855a

Added by Leszek Koltunski over 7 years ago

New vertex effect 'PINCH'

View differences:

src/main/java/org/distorted/library/DistortedObject.java
789 789
    return mV.add(EffectNames.SINK, sink, center);
790 790
    }
791 791

  
792
///////////////////////////////////////////////////////////////////////////////////////////////////
793
/**
794
 * Pull all points around the center of the Effect towards a line passing through the center
795
 * (that's if degree>=1) or push them away from the line (degree<=1)
796
 *
797
 * @param pinch  The current degree of the Effect + angle the line forms with X-axis
798
 * @param center 3-dimensional Data that, at any given time, returns the Center of the Effect.
799
 * @param region Region that masks the Effect.
800
 * @return       ID of the effect added, or -1 if we failed to add one.
801
 */
802
  public long pinch(Data2D pinch, Data3D center, Data4D region)
803
    {
804
    return mV.add(EffectNames.PINCH, pinch, center, region);
805
    }
806

  
807
///////////////////////////////////////////////////////////////////////////////////////////////////
808
/**
809
 * Pull all points around the center of the Effect towards a line passing through the center
810
 * (that's if degree>=1) or push them away from the line (degree<=1)
811
 *
812
 * @param pinch  The current degree of the Effect + angle the line forms with X-axis
813
 * @param center 3-dimensional Data that, at any given time, returns the Center of the Effect.
814
 * @return       ID of the effect added, or -1 if we failed to add one.
815
 */
816
  public long pinch(Data2D pinch, Data3D center)
817
    {
818
    return mV.add(EffectNames.PINCH, pinch, center);
819
    }
820

  
792 821
///////////////////////////////////////////////////////////////////////////////////////////////////  
793 822
/**
794 823
 * Rotate part of the Object around the Center of the Effect by a certain angle.

Also available in: Unified diff