CCL Home Page
Up Directory CCL tworings.java
/**
 * tworings.java
 * Copyright (c) 1997 Will Ware, all rights reserved.
 * 
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and other materials provided with the distribution.
 * 3. All advertising materials mentioning features or use of this software
 *    or its derived works must display the following acknowledgement:
 * 	This product includes software developed by Will Ware.
 * 
 * This software is provided "as is" and any express or implied warranties,
 * including, but not limited to, the implied warranties of merchantability
 * or fitness for any particular purpose are disclaimed. In no event shall
 * Will Ware be liable for any direct, indirect, incidental, special,
 * exemplary, or consequential damages (including, but not limited to,
 * procurement of substitute goods or services; loss of use, data, or
 * profits; or business interruption) however caused and on any theory of
 * liability, whether in contract, strict liability, or tort (including
 * negligence or otherwise) arising in any way out of the use of this
 * software, even if advised of the possibility of such damage.
 */

import java.awt.Panel;
import group;

public class tworings extends group
{
  public static final String rcsid =
  "$Id: tworings.java,v 1.5 1997/08/12 12:31:06 wware Exp $";
  public tworings (Panel p)
  {
    mypanel = p;
    addAtom (new carbon (atom.SP3,
              2.1445892122006, -1.2708629993337, -1.6747665667467));
    addAtom (new carbon (atom.SP3,
              0.60667770257047, -1.8833729265506, -1.0162669414044));
    addAtom (new carbon (atom.SP3,
              -0.39214367493379, -0.49333718442082, -0.59928665504497));
    addAtom (new
      hydrogen (2.8585942114205, -2.2571626609672, -2.0083092571337));
    addAtom (new
      hydrogen (0.84927187954563, -2.5559174958512, 0.024634921285566));
    addAtom (new
      hydrogen (0.029936406054837, -2.540809098483, -1.9309193254346));
    addAtom (new
      hydrogen (1.8942090976127, -0.47129533498539, -2.6192355745498));
    addAtom (new
      hydrogen (-0.59469793112033, 0.1915662637029, -1.6110507630611));
    addAtom (new carbon (atom.SP3,
              2.9775686160599, -0.38199157648467, -0.37845061136559));
    addAtom (new carbon (atom.SP3,
              0.39338011064232, 0.46332620464764, 0.64962683154327));
    addAtom (new carbon (atom.SP3,
              1.9822472052201, 1.0148928662904, 0.085087783408252));
    addAtom (new
      hydrogen (4.0718770714489, 0.050889129433384, -0.84149926942414));
    addAtom (new
      hydrogen (2.5620697486121, 1.5919211394139, 1.0533234851411));
    addAtom (new
      hydrogen (0.5335005640293, -0.19739537236352, 1.6863116639397));
    addAtom (new
      hydrogen (3.1062330897224, -1.1434466418592, 0.61985241340774));
    addAtom (new
      hydrogen (1.8235199286315, 1.7487975993067, -0.92959488446414));
    addAtom (new carbon (atom.SP3,
              -1.9397122789795, -1.0731601139773, 0.045993404578277));
    addAtom (new carbon (atom.SP3,
              -0.60295262758153, 1.8879066430492, 0.96575239191884));
    addAtom (new carbon (atom.SP3,
              -2.9730108685688, 0.34074805977008, 0.35076676211071));
    addAtom (new carbon (atom.SP3,
              -2.1896065097216, 1.3567266554995, 1.5833118672817));
    addAtom (new
      hydrogen (-2.0064735637112, 0.66621561021317, 2.6231707076255));
    addAtom (new
      hydrogen (-2.9054744619067, 2.3828242039181, 1.761932567168));
    addAtom (new
      hydrogen (-3.0794108513533, 1.0063640987831, -0.71701154336086));
    addAtom (new
      hydrogen (-4.0746760493782, -0.066973312519202, 0.81607863169224));
    addAtom (new
      hydrogen (-1.7358671864621, -1.668323985338, 1.1412783333111));
    addAtom (new
      hydrogen (-2.5008625806638, -1.7893687360072, -0.83186852445932));
    addAtom (new
      hydrogen (-0.048608068598665, 2.5783493762877, 1.8680697685076));
    addAtom (new
      hydrogen (-0.79017819079182, 2.5128895888254, -0.11693161647039));
    addBond (17, 27);
    addBond (17, 26);
    addBond (16, 25);
    addBond (16, 24);
    addBond (18, 22);
    addBond (23, 18);
    addBond (19, 21);
    addBond (20, 19);
    addBond (17, 9);
    addBond (17, 19);
    addBond (18, 19);
    addBond (16, 18);
    addBond (2, 16);
    addBond (10, 15);
    addBond (8, 14);
    addBond (13, 9);
    addBond (12, 10);
    addBond (11, 8);
    addBond (9, 2);
    addBond (10, 9);
    addBond (8, 10);
    addBond (0, 8);
    addBond (0, 6);
    addBond (1, 4);
    addBond (1, 5);
    addBond (2, 7);
    addBond (1, 2);
    addBond (0, 1);
    addBond (3, 0);
  }
}
Modified: Sat Jan 17 17:00:00 1998 GMT
Page accessed 3338 times since Sat Apr 17 22:02:36 1999 GMT