File: helpers.h

package info (click to toggle)
lsp-plugins 1.2.5-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 91,856 kB
  • sloc: cpp: 427,831; xml: 57,779; makefile: 9,961; php: 1,005; sh: 18
file content (30 lines) | stat: -rw-r--r-- 1,019 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
 * helpers.h
 *
 *  Created on: 30 авг. 2018 г.
 *      Author: sadko
 */

#ifndef PRIVATE_UTEST_DSP_3D_HELPERS_H_
#define PRIVATE_UTEST_DSP_3D_HELPERS_H_

#include <lsp-plug.in/test-fw/helpers.h>
#include <lsp-plug.in/dsp/dsp.h>

namespace lsp
{
    namespace test
    {
        bool point3d_ck(const dsp::point3d_t *p1, const dsp::point3d_t *p2);
        bool point3d_sck(const dsp::point3d_t *p1, const dsp::point3d_t *p2);
        bool point3d_ack(const dsp::point3d_t *p1, const dsp::point3d_t *p2, float tolerance = DSP_3D_TOLERANCE);
        bool vector3d_sck(const dsp::vector3d_t *v1, const dsp::vector3d_t *v2);
        bool vector3d_ack(const dsp::vector3d_t *v1, const dsp::vector3d_t *v2, float tolerance = DSP_3D_TOLERANCE);
        bool matrix3d_ck(const dsp::matrix3d_t *m1, const dsp::matrix3d_t *m2);

        void dump_point(const char *text, const dsp::point3d_t *p);
        void dump_vector(const char *text, const dsp::vector3d_t *v);
    }
}

#endif /* PRIVATE_UTEST_DSP_3D_HELPERS_H_ */