Пример #1
0
        /// <summary>
        /// Calculates difference from vector (minuend - subtrahend = difference).
        /// </summary>
        /// <param name="subtrahend">Subtrahend value.</param>
        /// <returns>Difference.</returns>
        public Vector DifferenceBy(double subtrahend)
        {
            Vector result = this;

            result.I = result.DifferenceByI(subtrahend);
            result.J = result.DifferenceByJ(subtrahend);
            result.K = result.DifferenceByK(subtrahend);

            return(result);
        }