Exemplo n.º 1
0
        /// <summary>
        /// TODO
        /// </summary>
        /// <param name="inputLineSymbol"></param>
        /// <param name="label"></param>
        /// <returns></returns>
        private static LineSymbol InferGeneralForm(this LineSymbol inputLineSymbol, string label)
        {
            var line = inputLineSymbol.Shape as Line;

            Debug.Assert(line != null);
            var ls = new LineSymbol(line);

            ls.OutputType = LineType.GeneralForm;
            ls.Traces.AddRange(inputLineSymbol.Traces);
            TraceInstructionalDesign.FromOneFormToAnother(inputLineSymbol, ls);
            return(ls);
        }
Exemplo n.º 2
0
        /// <summary>
        /// ax+by+c=0 =========> y = -(a/b)x-(c/b)
        /// </summary>
        /// <param name="inputLineSymbol"></param>
        /// <param name="label"></param>
        /// <returns></returns>
        private static LineSymbol InferSlopeInterceptForm(this LineSymbol inputLineSymbol)
        {
            //TODO
            var line = inputLineSymbol.Shape as Line;

            Debug.Assert(line != null);
            var ls = new LineSymbol(line);

            ls.OutputType = LineType.SlopeIntercept;
            ls.Traces.AddRange(inputLineSymbol.Traces);
            TraceInstructionalDesign.FromOneFormToAnother(inputLineSymbol, ls);
            return(ls);
        }