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 || Math.random();
- this.b = this.b || Math.random();
- this.c = this.c || Math.random();
+ 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();
}
};