File: vector.h

package info (click to toggle)
step 4%3A25.08.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,628 kB
  • sloc: cpp: 16,808; xml: 762; python: 380; javascript: 93; sh: 39; makefile: 3
file content (37 lines) | stat: -rw-r--r-- 856 bytes parent folder | download | duplicates (3)
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
31
32
33
34
35
36
37
/*
    SPDX-FileCopyrightText: 2007 Vladimir Kuznetsov <ks.vladimir@gmail.com>

    SPDX-License-Identifier: GPL-2.0-or-later
*/

#ifndef STEPCORE_VECTOR_H
#define STEPCORE_VECTOR_H

#include <Eigen/Core>
#include <QMetaType>

namespace StepCore
{

/** Two-dimensional vector with double components */
typedef Eigen::Vector2d Vector2d;
/** Three-dimensional vector with double components*/
typedef Eigen::Vector3d Vector3d;

/** Two-dimensional vector with integer components */
typedef Eigen::Vector2i Vector2i;
/** Three-dimensional vector with integer components */
typedef Eigen::Vector3i Vector3i;

typedef Eigen::VectorXd VectorXd;

} // namespace StepCore

// XXX: move it to types.h
Q_DECLARE_METATYPE(StepCore::Vector2d)
Q_DECLARE_METATYPE(StepCore::Vector3d)
Q_DECLARE_METATYPE(StepCore::Vector2i)
Q_DECLARE_METATYPE(StepCore::Vector3i)

#endif