public class Bond
{
- float[] start;
+ double[] start;
- float[] end;
+ double[] end;
Color startCol = Color.lightGray;
public Bond(Atom at1, Atom at2)
{
- this.start = new float[] { at1.x, at1.y, at1.z };
- this.end = new float[] { at2.x, at2.y, at2.z };
+ this.start = new double[] { at1.x, at1.y, at1.z };
+ this.end = new double[] { at2.x, at2.y, at2.z };
this.startCol = at1.color;
this.endCol = at2.color;
this.at1 = at1;
* return len; }
*/
- public void translate(float x, float y, float z)
+ public void translate(double x, double y, double z)
{
start[0] = start[0] + x;
end[0] = end[0] + x;