コード例 #1
0
ファイル: TPOFile.cs プロジェクト: xvok16/TDCGExplorer
        /// 移動変位を得ます。
        public Vector3 GetTranslation()
        {
            TPOCommand translation_command = FindTranslationCommand();

            if (translation_command != null)
            {
                return(translation_command.GetVector3());
            }
            else
            {
                return(new Vector3(0, 0, 0));
            }
        }
コード例 #2
0
ファイル: TPOFile.cs プロジェクト: xvok16/TDCGExplorer
        /// 拡大変位を得ます。
        public Vector3 GetScaling(out bool inv_scale_on_children)
        {
            inv_scale_on_children = false;
            TPOCommand scaling_command = FindScalingCommand();

            if (scaling_command != null)
            {
                if (scaling_command.Type == TPOCommandType.Scale1)
                {
                    inv_scale_on_children = true;
                }
                return(scaling_command.GetVector3());
            }
            else
            {
                return(new Vector3(1, 1, 1));
            }
        }