meshi.geometry
Class DistanceMirror

java.lang.Object
  extended by meshi.geometry.Distance
      extended by meshi.geometry.DistanceMirror
All Implemented Interfaces:
Attributable

public class DistanceMirror
extends Distance


Field Summary
 Distance source
           
 
Fields inherited from class meshi.geometry.Distance
atom1, atom1Number, atom2, atom2Number, distance, dx, dy, dz, INFINITE_DISTANCE, invDistance, largeType, mode, smallType
 
Constructor Summary
DistanceMirror(Distance source)
           
 
Method Summary
 double dDistanceDx()
          The derivative of the distance between atom1 & atom2 by the X coordinate of atom1.
 double dDistanceDy()
          The derivative of the distance between atom1 & atom2 by the Y coordinate of atom1.
 double dDistanceDz()
          The derivative of the distance between atom1 & atom2 by the Z coordinate of atom1.
 boolean dead()
           
 double distance()
          Get the distance between atom1 and atom2.
 double dx()
           
 double dy()
           
 double dz()
           
 double invDistance()
          Get the inverse of the distance between atom1 and atom2.
 
Methods inherited from class meshi.geometry.Distance
addAttribute, atom1, atom2, atom2Number, getAttribute, mode, setMode, toString, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

source

public final Distance source
Constructor Detail

DistanceMirror

public DistanceMirror(Distance source)
Method Detail

distance

public final double distance()
Description copied from class: Distance
Get the distance between atom1 and atom2.

Overrides:
distance in class Distance

invDistance

public final double invDistance()
Description copied from class: Distance
Get the inverse of the distance between atom1 and atom2.

Overrides:
invDistance in class Distance

dDistanceDx

public final double dDistanceDx()
Description copied from class: Distance
The derivative of the distance between atom1 & atom2 by the X coordinate of atom1. The derivative by the X coordinate of atom2 is this value multiplied by -1.

Overrides:
dDistanceDx in class Distance

dDistanceDy

public final double dDistanceDy()
Description copied from class: Distance
The derivative of the distance between atom1 & atom2 by the Y coordinate of atom1. The derivative by the Y coordinate of atom2 is this value multiplied by -1.

Overrides:
dDistanceDy in class Distance

dDistanceDz

public final double dDistanceDz()
Description copied from class: Distance
The derivative of the distance between atom1 & atom2 by the Z coordinate of atom1. The derivative by the Z coordinate of atom2 is this value multiplied by -1.

Overrides:
dDistanceDz in class Distance

dx

public final double dx()
Overrides:
dx in class Distance

dy

public final double dy()
Overrides:
dy in class Distance

dz

public final double dz()
Overrides:
dz in class Distance

dead

public final boolean dead()
Overrides:
dead in class Distance