LightLib
PROS library for VEX V5: EKF/MCL localization, RAMSETE path following, high-level chassis API
Loading...
Searching...
No Matches
QArea.hpp
Go to the documentation of this file.
1/*
2 * This code is a modified version of Benjamin Jurke's work in 2015. You can read his blog post
3 * here:
4 * https://benjaminjurke.com/content/articles/2015/compile-time-numerical-unit-dimension-checking/
5 *
6 * This Source Code Form is subject to the terms of the Mozilla Public
7 * License, v. 2.0. If a copy of the MPL was not distributed with this
8 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 */
10#pragma once
11
14
15namespace okapi {
16QUANTITY_TYPE(0, 2, 0, 0, QArea)
17
18constexpr QArea kilometer2 = kilometer * kilometer;
19constexpr QArea meter2 = meter * meter;
20constexpr QArea decimeter2 = decimeter * decimeter;
21constexpr QArea centimeter2 = centimeter * centimeter;
22constexpr QArea millimeter2 = millimeter * millimeter;
23constexpr QArea inch2 = inch * inch;
24constexpr QArea foot2 = foot * foot;
25constexpr QArea mile2 = mile * mile;
26} // namespace okapi
#define QUANTITY_TYPE(_Mdim, _Ldim, _Tdim, _Adim, name)
Definition RQuantity.hpp:84
constexpr QLength kilometer
Definition QLength.hpp:21
constexpr QArea foot2
Definition QArea.hpp:24
constexpr QArea decimeter2
Definition QArea.hpp:20
constexpr QLength meter(1.0)
constexpr QLength foot
Definition QLength.hpp:23
constexpr QLength inch
Definition QLength.hpp:22
constexpr QArea millimeter2
Definition QArea.hpp:22
constexpr QLength centimeter
Definition QLength.hpp:19
constexpr QLength millimeter
Definition QLength.hpp:20
constexpr QArea centimeter2
Definition QArea.hpp:21
constexpr QArea kilometer2
Definition QArea.hpp:18
constexpr QArea inch2
Definition QArea.hpp:23
constexpr QLength mile
Definition QLength.hpp:25
constexpr QLength decimeter
Definition QLength.hpp:18
constexpr QArea meter2
Definition QArea.hpp:19
constexpr QArea mile2
Definition QArea.hpp:25