Exemple #1
0
        public float calcRotationRadius(Point3f center)
		{
			
			float maxRadius = 0;
			for (int i = atomCount; --i >= 0; )
			{
				Atom atom = atoms[i];
				float distAtom = center.distance(atom.point3f);
				float radiusVdw = atom.VanderwaalsRadiusFloat;
				float outerVdw = distAtom + radiusVdw;
				if (outerVdw > maxRadius)
					maxRadius = outerVdw;
			}
			return maxRadius;
		}