LightLib
PROS library for VEX V5: EKF/MCL localization, RAMSETE path following, high-level chassis API
Loading...
Searching...
No Matches
QVolume.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
15
16namespace okapi {
17QUANTITY_TYPE(0, 3, 0, 0, QVolume)
18
19constexpr QVolume kilometer3 = kilometer2 * kilometer;
20constexpr QVolume meter3 = meter2 * meter;
21constexpr QVolume decimeter3 = decimeter2 * decimeter;
22constexpr QVolume centimeter3 = centimeter2 * centimeter;
23constexpr QVolume millimeter3 = millimeter2 * millimeter;
24constexpr QVolume inch3 = inch2 * inch;
25constexpr QVolume foot3 = foot2 * foot;
26constexpr QVolume mile3 = mile2 * mile;
27constexpr QVolume litre = decimeter3;
28} // namespace okapi
#define QUANTITY_TYPE(_Mdim, _Ldim, _Tdim, _Adim, name)
Definition RQuantity.hpp:84
constexpr QVolume mile3
Definition QVolume.hpp:26
constexpr QLength kilometer
Definition QLength.hpp:21
constexpr QVolume foot3
Definition QVolume.hpp:25
constexpr QVolume centimeter3
Definition QVolume.hpp:22
constexpr QArea foot2
Definition QArea.hpp:24
constexpr QVolume decimeter3
Definition QVolume.hpp:21
constexpr QVolume millimeter3
Definition QVolume.hpp:23
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 QVolume litre
Definition QVolume.hpp:27
constexpr QLength centimeter
Definition QLength.hpp:19
constexpr QVolume kilometer3
Definition QVolume.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 QVolume inch3
Definition QVolume.hpp:24
constexpr QVolume meter3
Definition QVolume.hpp:20
constexpr QArea meter2
Definition QArea.hpp:19
constexpr QArea mile2
Definition QArea.hpp:25