Ejemplo n.º 1
0
        /// <summary>
        /// Store position minus offset (Point) to destination.
        /// </summary>
        /// <param name="positionVariable"></param>
        /// <param name="offsetVariable"></param>
        /// <param name="destinationVariable"></param>
        /// <param name="nextCommand"></param>
        /// <returns></returns>
        public static IScriptCommand OffsetPositionNeg(string positionVariable    = "{Position}", string offsetVariable      = "{Offset}",
                                                       string destinationVariable = "{Position}", IScriptCommand nextCommand = null)
        {
            string offsetNegVariable = ParameterDic.CombineVariable(offsetVariable, "Neg", true);

            return(HubScriptCommands.NegativePosition(offsetVariable, offsetNegVariable,
                                                      HubScriptCommands.OffsetPosition(positionVariable, offsetNegVariable, destinationVariable, nextCommand)));
        }