meshi.geometry
Class QuickAndDirtyAngle
java.lang.Object
meshi.geometry.Angle
meshi.geometry.QuickAndDirtyAngle
- All Implemented Interfaces:
- Updateable
public class QuickAndDirtyAngle
- extends Angle
Allows the use of approximated arc-cos function.
The use of the standard Math.acos function is the default.
| Fields inherited from class meshi.geometry.Angle |
angleCode, angleName, angleResName, angleResNum, atom1, atom2, atom3, atomPair1, atomPair2, DISTANCE1, DISTANCE2, distanceMatrix |
|
Method Summary |
double |
acos(double cos)
An approximated fast arc-cos function that uses the ArcCos class. |
| Methods inherited from class meshi.geometry.Angle |
angle, assignName, atom1, atom2, atom3, atomPair1, atomPair2, cosAngle, dangleDx1, dangleDx2, dangleDx3, dangleDy1, dangleDy2, dangleDy3, dangleDz1, dangleDz2, dangleDz3, deg2rad, frozen, getAngleCode, getAngleName, getAngleResName, getAngleResNum, hinge, proper, rad2deg, sharedAtomPair, sinAngle, toString, update, update |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
QuickAndDirtyAngle
public QuickAndDirtyAngle(AtomPair atomPair1,
AtomPair atomPair2,
DistanceMatrix distanceMatrix)
QuickAndDirtyAngle
public QuickAndDirtyAngle(Atom atom1,
Atom atom2,
Atom atom3,
DistanceMatrix distanceMatrix)
acos
public final double acos(double cos)
- An approximated fast arc-cos function that uses the ArcCos class.
Note that the static method ArcCos.useFastArcCos() should be called
in order for the approximation to take affect. Standard Math.acos is the DEFAULT
- Overrides:
acos in class Angle
- Parameters:
cos - value
- Returns:
- arccos value