aboutsummaryrefslogtreecommitdiff
path: root/lib/components/triple_frequency.js
blob: a67f1cd0d6f032afc014eb0dfd183caee3ba2327 (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 frequency, intended for a 3D parametric curve.
  */
export default class TripleFrequency extends Component {
  constructor(config) {

    super(config);

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