diff --git a/client/src/features/visualizer-threejs/constants.ts b/client/src/features/visualizer-threejs/constants.ts index 77056f154..cc588c7f8 100644 --- a/client/src/features/visualizer-threejs/constants.ts +++ b/client/src/features/visualizer-threejs/constants.ts @@ -87,8 +87,8 @@ export const EMITTER_X_POSITION_MULTIPLIER = 3; /* Values for randomizing the tangle */ export const NUMBER_OF_RANDOM_PERIODS = 100; -export const MIN_SINUSOID_HALF_PERIOD = 5; -export const MAX_SINUSOID_HALF_PERIOD = 8; +export const MIN_SINUSOID_PERIOD = 5; +export const MAX_SINUSOID_PERIOD = 8; export const NUMBER_OF_RANDOM_AMPLITUDES = 100; export const MIN_SINUSOID_AMPLITUDE = 100; diff --git a/client/src/features/visualizer-threejs/utils.ts b/client/src/features/visualizer-threejs/utils.ts index 2a27b1758..bba6c9ec2 100644 --- a/client/src/features/visualizer-threejs/utils.ts +++ b/client/src/features/visualizer-threejs/utils.ts @@ -15,8 +15,8 @@ import { CAMERA_X_OFFSET, CAMERA_Y_OFFSET, NUMBER_OF_RANDOM_PERIODS, - MIN_SINUSOID_HALF_PERIOD, - MAX_SINUSOID_HALF_PERIOD, + MIN_SINUSOID_PERIOD, + MAX_SINUSOID_PERIOD, NUMBER_OF_RANDOM_AMPLITUDES, MIN_SINUSOID_AMPLITUDE, MAX_SINUSOID_AMPLITUDE, @@ -290,7 +290,7 @@ export function positionToVector(position: IThreeDimensionalPosition) { export function generateRandomPeriods(): { periods: number[]; sum: number } { let sum = 0; const periods = Array.from({ length: NUMBER_OF_RANDOM_PERIODS }, () => { - const period = Number(randomNumberFromInterval(MIN_SINUSOID_HALF_PERIOD, MAX_SINUSOID_HALF_PERIOD).toFixed(4)); + const period = Number(randomNumberFromInterval(MIN_SINUSOID_PERIOD, MAX_SINUSOID_PERIOD).toFixed(4)); sum += period; return period; });