AngularVelocity.h

#pragma once


#include "Angle.h"


namespace Robotics
{
    /// 角速度
    public value class AngularVelocity
    {
    // Construction --------------------------------------------------------
    public:
        explicit AngularVelocity( double angularVelocity );
        AngularVelocity( Angle befor, Angle after, double time );


    // Overload ------------------------------------------------------------
    public:
        operator double() { return m_angularVelocity; }


    // Attribute ===========================================================
    private:
        Angle m_angularVelocity;   ///< 角速度[ rad/sec ]


    // Property ------------------------------------------------------------
    public:
        /// Degree[ deg/sec ]
        property double Degree
        {
            double get()
            {
                return m_angularVelocity.Degree;
            }
            void set( double value )
            {
                m_angularVelocity.Degree = value;
            }
        }
    };
}