artofillusion.animation.distortion
Class TwistDistortion

java.lang.Object
  extended by artofillusion.animation.distortion.Distortion
      extended by artofillusion.animation.distortion.TwistDistortion

public class TwistDistortion
extends Distortion

This is a distortion which twists an object.


Field Summary
static int X_AXIS
           
static int Y_AXIS
           
static int Z_AXIS
           
 
Constructor Summary
TwistDistortion(int axis, double angle, boolean forward, Mat4 preTransform, Mat4 postTransform)
           
 
Method Summary
 Distortion duplicate()
          Create a duplicate of this object.
 boolean isIdenticalTo(Distortion d)
          Determine whether this distortion is identical to another one.
 Mesh transform(Mesh obj)
          Apply the Distortion, and return a transformed mesh.
 
Methods inherited from class artofillusion.animation.distortion.Distortion
getPreviousDistortion, setPreviousDistortion
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

X_AXIS

public static final int X_AXIS
See Also:
Constant Field Values

Y_AXIS

public static final int Y_AXIS
See Also:
Constant Field Values

Z_AXIS

public static final int Z_AXIS
See Also:
Constant Field Values
Constructor Detail

TwistDistortion

public TwistDistortion(int axis,
                       double angle,
                       boolean forward,
                       Mat4 preTransform,
                       Mat4 postTransform)
Method Detail

isIdenticalTo

public boolean isIdenticalTo(Distortion d)
Determine whether this distortion is identical to another one.

Specified by:
isIdenticalTo in class Distortion

duplicate

public Distortion duplicate()
Create a duplicate of this object.

Specified by:
duplicate in class Distortion

transform

public Mesh transform(Mesh obj)
Apply the Distortion, and return a transformed mesh.

Specified by:
transform in class Distortion


Copyright © 1999-2011 by Peter Eastman.