|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectartofillusion.animation.Joint.DOF
public class Joint.DOF
This is an inner class for storing information about the properties of a particular degree of freedom.
Field Summary | |
---|---|
boolean |
comfort
|
boolean |
fixed
|
boolean |
loop
|
double |
max
|
double |
maxComfort
|
double |
min
|
double |
minComfort
|
double |
pos
|
double |
stiffness
|
Constructor Summary | |
---|---|
Joint.DOF(java.io.DataInputStream in)
Reconstruct a DOF from its serialized representation. |
|
Joint.DOF(double min,
double max,
double pos)
|
Method Summary | |
---|---|
void |
copy(Joint.DOF d)
|
Joint.DOF |
duplicate()
|
boolean |
equals(Joint.DOF d)
Determine if this DOF is identical to another one. |
double |
getClippedForce(double f)
Given a force applied to the degree of freedom, return a new force which is clipped so as not to move it beyond the allowed range. |
double |
getForceScale(double f)
Given a force applied to the degree of freedom, return a scale factor based on the stiffness, the direction of the force, and whether it is inside its comfort range. |
double |
getScaledForce(double f)
Given a force applied to the degree of freedom, return a new force which is scaled based on the stiffness, the direction of the force, and whether it is inside its comfort range. |
void |
set(double val)
|
void |
writeToStream(java.io.DataOutputStream out)
Write a serialized representation of this DOF to a stream. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public double min
public double max
public double minComfort
public double maxComfort
public double stiffness
public double pos
public boolean fixed
public boolean comfort
public boolean loop
Constructor Detail |
---|
public Joint.DOF(double min, double max, double pos)
public Joint.DOF(java.io.DataInputStream in) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public Joint.DOF duplicate()
public void copy(Joint.DOF d)
public boolean equals(Joint.DOF d)
public void set(double val)
public double getScaledForce(double f)
public double getForceScale(double f)
public double getClippedForce(double f)
public void writeToStream(java.io.DataOutputStream out) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |