]> git.r.bdr.sh - rbdr/lissajous/blame - lib/components/triple_phase.js
Add a few comments
[rbdr/lissajous] / lib / components / triple_phase.js
CommitLineData
2b9badac
RBR
1import { Component } from '@serpentity/serpentity';
2
32e2eed2
RBR
3/**
4 * Stores three values of phase, intended for a 3D parametric curve.
5 */
2b9badac
RBR
6export default class TriplePhase extends Component {
7 constructor(config) {
8
9 super(config);
10
11 this.a = this.a || Math.PI * Math.random();
12 this.b = this.b || Math.PI * Math.random();
13 this.c = this.c || Math.PI * Math.random();
14 }
15};