|
Boost-Commit : |
From: boost_at_[hidden]
Date: 2008-06-02 12:19:34
Author: matthiasschabel
Date: 2008-06-02 12:19:34 EDT (Mon, 02 Jun 2008)
New Revision: 46046
URL: http://svn.boost.org/trac/boost/changeset/46046
Log:
add angular acceleration
Added:
sandbox/units/boost/units/physical_dimensions/angular_acceleration.hpp (contents, props changed)
sandbox/units/boost/units/systems/si/angular_acceleration.hpp (contents, props changed)
Text files modified:
sandbox/units/boost/units/physical_dimensions.hpp | 1 +
sandbox/units/boost/units/systems/si.hpp | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
Modified: sandbox/units/boost/units/physical_dimensions.hpp
==============================================================================
--- sandbox/units/boost/units/physical_dimensions.hpp (original)
+++ sandbox/units/boost/units/physical_dimensions.hpp 2008-06-02 12:19:34 EDT (Mon, 02 Jun 2008)
@@ -34,6 +34,7 @@
#include <boost/units/physical_dimensions/acceleration.hpp>
#include <boost/units/physical_dimensions/action.hpp>
#include <boost/units/physical_dimensions/activity.hpp>
+#include <boost/units/physical_dimensions/angular_acceleration.hpp>
#include <boost/units/physical_dimensions/angular_momentum.hpp>
#include <boost/units/physical_dimensions/angular_velocity.hpp>
#include <boost/units/physical_dimensions/area.hpp>
Added: sandbox/units/boost/units/physical_dimensions/angular_acceleration.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/physical_dimensions/angular_acceleration.hpp 2008-06-02 12:19:34 EDT (Mon, 02 Jun 2008)
@@ -0,0 +1,30 @@
+// Boost.Units - A C++ library for zero-overhead dimensional analysis and
+// unit/quantity manipulation and conversion
+//
+// Copyright (C) 2003-2008 Matthias Christian Schabel
+// Copyright (C) 2008 Steven Watanabe
+//
+// Distributed under the Boost Software License, Version 1.0. (See
+// accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt)
+
+#ifndef BOOST_UNITS_ANGULAR_ACCELERATION_DERIVED_DIMENSION_HPP
+#define BOOST_UNITS_ANGULAR_ACCELERATION_DERIVED_DIMENSION_HPP
+
+#include <boost/units/derived_dimension.hpp>
+#include <boost/units/physical_dimensions/plane_angle.hpp>
+#include <boost/units/physical_dimensions/time.hpp>
+
+namespace boost {
+
+namespace units {
+
+/// derived dimension for angular acceleration : T^-2 QP
+typedef derived_dimension<time_base_dimension,-2,
+ plane_angle_base_dimension,1>::type angular_acceleration_dimension;
+
+} // namespace units
+
+} // namespace boost
+
+#endif // BOOST_UNITS_ANGULAR_ACCELERATION_DERIVED_DIMENSION_HPP
Modified: sandbox/units/boost/units/systems/si.hpp
==============================================================================
--- sandbox/units/boost/units/systems/si.hpp (original)
+++ sandbox/units/boost/units/systems/si.hpp 2008-06-02 12:19:34 EDT (Mon, 02 Jun 2008)
@@ -25,6 +25,7 @@
#include <boost/units/systems/si/action.hpp>
#include <boost/units/systems/si/activity.hpp>
#include <boost/units/systems/si/amount.hpp>
+#include <boost/units/systems/si/angular_acceleration.hpp>
#include <boost/units/systems/si/angular_momentum.hpp>
#include <boost/units/systems/si/angular_velocity.hpp>
#include <boost/units/systems/si/area.hpp>
Added: sandbox/units/boost/units/systems/si/angular_acceleration.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/si/angular_acceleration.hpp 2008-06-02 12:19:34 EDT (Mon, 02 Jun 2008)
@@ -0,0 +1,31 @@
+// Boost.Units - A C++ library for zero-overhead dimensional analysis and
+// unit/quantity manipulation and conversion
+//
+// Copyright (C) 2003-2008 Matthias Christian Schabel
+// Copyright (C) 2008 Steven Watanabe
+//
+// Distributed under the Boost Software License, Version 1.0. (See
+// accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt)
+
+#ifndef BOOST_UNITS_SI_ANGULAR_ACCELERATION_HPP
+#define BOOST_UNITS_SI_ANGULAR_ACCELERATION_HPP
+
+#include <boost/units/systems/si/base.hpp>
+#include <boost/units/physical_dimensions/angular_acceleration.hpp>
+
+namespace boost {
+
+namespace units {
+
+namespace si {
+
+typedef unit<angular_acceleration_dimension,si::system> angular_acceleration;
+
+} // namespace si
+
+} // namespace units
+
+} // namespace boost
+
+#endif // BOOST_UNITS_SI_ANGULAR_ACCELERATION_HPP
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk