<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>MathBox - Empty</title>
<script src="mathbox-bundle.js"></script>
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
</head>
<body>
<script>
var mathbox = mathBox({
plugins: ['core', 'controls', 'cursor', 'mathbox'],
controls: {
// Orbit controls, i.e. Euler angles, with gimbal lock
klass: THREE.OrbitControls,
// Trackball controls, i.e. Free quaternion rotation
//klass: THREE.TrackballControls,
},
});
if (mathbox.fallback) throw "WebGL not supported"
var three = mathbox.three;
three.renderer.setClearColor(new THREE.Color(0xFFFFFF), 1.0);
// Do stuff with mathbox,
// for example: (see docs/intro.md)
var camera = mathbox.camera({
proxy: true,
position: [0, 0, 3],
});
I would like to show next to this figure another plot which shows the length of the green segment in a plot of "slope of green line versus length of green segment".
The math for this is obviously trivial but my question is, how do I add that other figure which is synchronised? I can make another html file which animates the length and then put those two side by side in another html doc, but then the two animations are slightly lagged (and I would like to let the user see the same information (i.e. the length of the line) in both plots at the same time.