Beispiel #1
0
        public object Clone()
        {
            var clone = new MyoData
            {
                Pose  = (PoseData)this.Pose.Clone(),
                Accel = (AcceleronmeterData)this.Accel.Clone(),
                Gyro  = (GyroscopeData)this.Gyro.Clone(),
                Orien = (OrientationData)this.Orien.Clone()
            };

            return(clone);
        }
Beispiel #2
0
        public static MyoDataProfile ConvertToProfile(MyoData toConvert)
        {
            var toReturn = new MyoDataProfile
            {
                Pose   = (PoseProfileData)toConvert.Pose.Clone(),
                Accel  = (AcceleronmeterProfileData)toConvert.Accel.Clone(),
                Gyro   = (GyroscopeProfileData)toConvert.Gyro.Clone(),
                Orien  = (OrientationProfileData)toConvert.Orien.Clone(),
                Frames = 1
            };

            //if we are converting to profile, it should always be the beginning of a frame set
            return(toReturn);
        }