]> git.r.bdr.sh - rbdr/lissajous/blob - lib/components/triple_amplitude.js
8362c82f64c6ae2b1dd4be2a28be6fe30dc54b15
[rbdr/lissajous] / lib / components / triple_amplitude.js
1 import { Component } from '@serpentity/serpentity';
2
3 /**
4 * Stores three values of amplitude, intended for a 3D parametric curve.
5 */
6 export default class TripleAmplitude extends Component {
7 constructor(config) {
8
9 super(config);
10
11 this.a = this.a || Math.random();
12 this.b = this.b || Math.random();
13 this.c = this.c || Math.random();
14 }
15 };