meshi.applications.prediction.beautify.unWarpEnergy
Class UnWarpEnergyElement

java.lang.Object
  extended by meshi.energy.EnergyElement
      extended by meshi.applications.prediction.beautify.unWarpEnergy.UnWarpEnergyElement

public class UnWarpEnergyElement
extends EnergyElement


Field Summary
private  FreeDistance distance
           
private  Atom first
           
private  boolean on
           
private  Atom second
           
private  double targetDistance
           
private  double weight
           
 
Fields inherited from class meshi.energy.EnergyElement
atoms, dFormatSrt, dFormatStd, DX, frozen, relativeDiffTolerance, VERY_SMALL, XYZ
 
Constructor Summary
UnWarpEnergyElement(Atom first, Atom second, double targetDistance, double weight)
           
 
Method Summary
 double evaluate()
           
 void off()
           
protected  void setAtoms()
           
 void update()
           
 
Methods inherited from class meshi.energy.EnergyElement
atoms, evaluateAtoms, frozen, test, updateFrozen
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

distance

private FreeDistance distance

first

private Atom first

second

private Atom second

weight

private double weight

on

private boolean on

targetDistance

private double targetDistance
Constructor Detail

UnWarpEnergyElement

public UnWarpEnergyElement(Atom first,
                           Atom second,
                           double targetDistance,
                           double weight)
Method Detail

update

public void update()

evaluate

public double evaluate()
Specified by:
evaluate in class EnergyElement

setAtoms

protected void setAtoms()
Specified by:
setAtoms in class EnergyElement

off

public void off()