Unit Conversion and Dimensional Analysis Library 3.6.1
A compile-time, header-only C++23 dimensional-analysis library
Loading...
Searching...
No Matches
angular_jerk.h
Go to the documentation of this file.
1//--------------------------------------------------------------------------------------------------
2//
3// UnitConversion: A compile-time c++23 unit conversion library with no dependencies
4//
5//--------------------------------------------------------------------------------------------------
6//
7// The MIT License (MIT)
8//
9// Permission is hereby granted, free of charge, to any person obtaining a copy of this software
10// and associated documentation files (the "Software"), to deal in the Software without
11// restriction, including without limitation the rights to use, copy, modify, merge, publish,
12// distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the
13// Software is furnished to do so, subject to the following conditions:
14//
15// The above copyright notice and this permission notice shall be included in all copies or
16// substantial portions of the Software.
17//
18// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
19// BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
20// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
21// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23//
24//--------------------------------------------------------------------------------------------------
25//
26// Copyright (c) 2016 Nic Holthaus
27//
28//--------------------------------------------------------------------------------------------------
29//
32//
33//--------------------------------------------------------------------------------------------------
34
35#pragma once
36
37#ifndef units_angular_jerk_h_
38#define units_angular_jerk_h_
39
40#include <units/angle.h>
41#include <units/time.h>
42
43namespace units
44{
53 UNIT_ADD_WITH_METRIC_PREFIXES(angular_jerk, radians_per_second_cubed, rad_per_s_cu, conversion_factor<std::ratio<1>, dimension::angular_jerk>)
54 UNIT_ADD(angular_jerk, degrees_per_second_cubed, deg_per_s_cu, compound_conversion_factor<degrees_, inverse<cubed<seconds_>>>)
55 UNIT_ADD(angular_jerk, gradians_per_second_cubed, gon_per_s_cu, compound_conversion_factor<gradians_, inverse<cubed<seconds_>>>)
56 UNIT_ADD(angular_jerk, revolutions_per_second_cubed, rev_per_s_cu, compound_conversion_factor<turns_, inverse<cubed<seconds_>>>)
57 UNIT_ADD(angular_jerk, revolutions_per_minute_cubed, rev_per_min_cu, compound_conversion_factor<turns_, inverse<cubed<minutes_>>>)
58
60} // namespace units
61
62#endif // units_angular_jerk_h_
#define UNIT_ADD(namespaceName, namePlural, abbreviation,...)
Macro for generating the boilerplate code needed for a new unit.
Definition core.h:447
#define UNIT_ADD_WITH_METRIC_PREFIXES(namespaceName, namePlural, abbreviation,...)
Macro for generating the boilerplate code needed for a new unit, including its metric prefixes from f...
Definition core.h:529
#define UNIT_ADD_DIMENSION_TRAIT(unitdimension, ConceptName)
Macro to create the is_dimension_unit type trait and the ConceptName concept.
Definition core.h:488
typename detail::compound_impl< Cf, Cfs... >::type compound_conversion_factor
Represents a conversion factor made up from other conversion factors.
Definition core.h:1958
typename detail::cubed_impl< Cf >::type cubed
represents the type of class U cubed.
Definition core.h:1700
typename detail::inverse_impl< Cf >::type inverse
represents the inverse unit type of class U.
Definition core.h:1646
namespace for unit types and containers representing angular jerk values
dimension_divide< angular_acceleration, time > angular_jerk
< Represents an SI derived unit of angular acceleration
Definition core.h:1343
Unit Conversion Library namespace.
Definition units.h:108
Type representing an arbitrary conversion factor between units.
Definition core.h:1568
units representing time values