]>
Commit | Line | Data |
---|---|---|
5f6ef99e RBR |
1 | import { Component } from '@serpentity/serpentity'; |
2 | ||
32e2eed2 RBR |
3 | /** |
4 | * Stores three values of frequency, intended for a 3D parametric curve. | |
5 | */ | |
5f6ef99e RBR |
6 | export default class TripleFrequency extends Component { |
7 | constructor(config) { | |
8 | ||
9 | super(config); | |
10 | ||
3a88e110 RBR |
11 | this.a = this.a || 2 * Math.PI * Math.random(); |
12 | this.b = this.b || 2 * Math.PI * Math.random(); | |
13 | this.c = this.c || 2 * Math.PI * Math.random(); | |
5f6ef99e RBR |
14 | } |
15 | }; |