From 789a28ff4398a89b3eb3fb0166915ccf3d61bb3f Mon Sep 17 00:00:00 2001 From: Zeger Hendrikse Date: Tue, 29 Apr 2025 23:11:53 +0200 Subject: [PATCH] Fixed the too short first leg of the methane molecule. --- public/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/script.js b/public/script.js index 29e76c6..4351ff5 100644 --- a/public/script.js +++ b/public/script.js @@ -340,7 +340,7 @@ class Methane extends Molecule { const sin_phi = 1 / 3, cos_phi = (2 * Math.sqrt(2)) / 3; - const positions = [new vector(0, 1, 0)]; + const positions = [new vector(0, 1, 0).multiplyScalar(1.5)]; const atoms = []; positions.push(new vector(cos_phi, -sin_phi, 0).multiplyScalar(1.5)); positions.push(