mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-30 12:38:33 -04:00
AP_Math: replace header guard with pragma once
This commit is contained in:
parent
83f11145d5
commit
b4a8a0b961
@ -36,9 +36,7 @@
|
|||||||
// Matrix3ul 3x3 matrix of unsigned longs
|
// Matrix3ul 3x3 matrix of unsigned longs
|
||||||
// Matrix3f 3x3 matrix of signed floats
|
// Matrix3f 3x3 matrix of signed floats
|
||||||
//
|
//
|
||||||
|
#pragma once
|
||||||
#ifndef MATRIX3_H
|
|
||||||
#define MATRIX3_H
|
|
||||||
|
|
||||||
#include "vector3.h"
|
#include "vector3.h"
|
||||||
|
|
||||||
@ -242,5 +240,3 @@ typedef Matrix3<int32_t> Matrix3l;
|
|||||||
typedef Matrix3<uint32_t> Matrix3ul;
|
typedef Matrix3<uint32_t> Matrix3ul;
|
||||||
typedef Matrix3<float> Matrix3f;
|
typedef Matrix3<float> Matrix3f;
|
||||||
typedef Matrix3<double> Matrix3d;
|
typedef Matrix3<double> Matrix3d;
|
||||||
|
|
||||||
#endif // MATRIX3_H
|
|
||||||
|
@ -16,9 +16,7 @@
|
|||||||
|
|
||||||
// Copyright 2012 Andrew Tridgell, all rights reserved.
|
// Copyright 2012 Andrew Tridgell, all rights reserved.
|
||||||
// Refactored by Jonathan Challinger
|
// Refactored by Jonathan Challinger
|
||||||
|
#pragma once
|
||||||
#ifndef QUATERNION_H
|
|
||||||
#define QUATERNION_H
|
|
||||||
|
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#if MATH_CHECK_INDEXES
|
#if MATH_CHECK_INDEXES
|
||||||
@ -124,4 +122,3 @@ public:
|
|||||||
Quaternion &operator*=(const Quaternion &v);
|
Quaternion &operator*=(const Quaternion &v);
|
||||||
Quaternion operator/(const Quaternion &v) const;
|
Quaternion operator/(const Quaternion &v) const;
|
||||||
};
|
};
|
||||||
#endif // QUATERNION_H
|
|
||||||
|
@ -28,9 +28,7 @@
|
|||||||
* © 2003, This code is provided "as is" and you can use it freely as long as
|
* © 2003, This code is provided "as is" and you can use it freely as long as
|
||||||
* credit is given to Bill Perone in the application it is used in
|
* credit is given to Bill Perone in the application it is used in
|
||||||
****************************************/
|
****************************************/
|
||||||
|
#pragma once
|
||||||
#ifndef VECTOR2_H
|
|
||||||
#define VECTOR2_H
|
|
||||||
|
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
@ -161,5 +159,3 @@ typedef Vector2<uint16_t> Vector2ui;
|
|||||||
typedef Vector2<int32_t> Vector2l;
|
typedef Vector2<int32_t> Vector2l;
|
||||||
typedef Vector2<uint32_t> Vector2ul;
|
typedef Vector2<uint32_t> Vector2ul;
|
||||||
typedef Vector2<float> Vector2f;
|
typedef Vector2<float> Vector2f;
|
||||||
|
|
||||||
#endif // VECTOR2_H
|
|
||||||
|
@ -46,9 +46,7 @@
|
|||||||
* or if the matrix (A) * b = 0
|
* or if the matrix (A) * b = 0
|
||||||
*
|
*
|
||||||
****************************************/
|
****************************************/
|
||||||
|
#pragma once
|
||||||
#ifndef VECTOR3_H
|
|
||||||
#define VECTOR3_H
|
|
||||||
|
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <float.h>
|
#include <float.h>
|
||||||
@ -219,5 +217,3 @@ typedef Vector3<int32_t> Vector3l;
|
|||||||
typedef Vector3<uint32_t> Vector3ul;
|
typedef Vector3<uint32_t> Vector3ul;
|
||||||
typedef Vector3<float> Vector3f;
|
typedef Vector3<float> Vector3f;
|
||||||
typedef Vector3<double> Vector3d;
|
typedef Vector3<double> Vector3d;
|
||||||
|
|
||||||
#endif // VECTOR3_H
|
|
||||||
|
@ -13,9 +13,7 @@
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
#pragma once
|
||||||
#ifndef VECTORN_H
|
|
||||||
#define VECTORN_H
|
|
||||||
|
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@ -140,5 +138,3 @@ public:
|
|||||||
private:
|
private:
|
||||||
T _v[N];
|
T _v[N];
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // VECTORN_H
|
|
||||||
|
Loading…
Reference in New Issue
Block a user