NAP
nap
system_modules
napmath
src
waveform.h
1
/* This Source Code Form is subject to the terms of the Mozilla Public
2
* License, v. 2.0. If a copy of the MPL was not distributed with this
3
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
4
5
#pragma once
6
7
#include <utility/dllexport.h>
8
#include <rtti/rtti.h>
9
10
namespace
nap
11
{
12
namespace
math
13
{
17
enum class
EWaveform
: int
18
{
19
SINE
= 0,
20
SQUARE
,
21
SAW
,
22
TRIANGLE
23
};
24
32
float
NAPAPI
waveform
(
EWaveform
type,
float
time,
float
frequency);
33
}
34
}
nap::math::EWaveform
EWaveform
Definition:
waveform.h:17
nap::math::EWaveform::SAW
@ SAW
Saw.
nap::math::EWaveform::TRIANGLE
@ TRIANGLE
Triangle.
nap
Definition:
templateapp.h:17
nap::math::EWaveform::SINE
@ SINE
Sine.
nap::math::waveform
float NAPAPI waveform(EWaveform type, float time, float frequency)
nap::math::EWaveform::SQUARE
@ SQUARE
Square.
Generated by doxygen