aboutsummaryrefslogtreecommitdiff
path: root/lib/components/triple_phase.js
blob: 99416d2a1cdb635ed4b3e42f94c8b3e9f1113c46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { Component } from '@serpentity/serpentity';

/**
  * Stores three values of phase, intended for a 3D parametric curve.
  */
export default class TriplePhase extends Component {
  constructor(config) {

    super(config);

    this.a = this.a || Math.PI * Math.random();
    this.b = this.b || Math.PI * Math.random();
    this.c = this.c || Math.PI * Math.random();
  }
};