Skip to content

Commit 4bc76ef

Browse files
Merge pull request #2 from zhendrikse/main
Fixed the too short first leg of the methane molecule.
2 parents c100e04 + 789a28f commit 4bc76ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ class Methane extends Molecule {
340340
const sin_phi = 1 / 3,
341341
cos_phi = (2 * Math.sqrt(2)) / 3;
342342

343-
const positions = [new vector(0, 1, 0)];
343+
const positions = [new vector(0, 1, 0).multiplyScalar(1.5)];
344344
const atoms = [];
345345
positions.push(new vector(cos_phi, -sin_phi, 0).multiplyScalar(1.5));
346346
positions.push(

0 commit comments

Comments
 (0)