예제 #1
0
        /// <summary>
        /// Divides a vector by a factor.
        /// </summary>
        /// <param name="value1">The vector to divide.</param>
        /// <param name="scaleFactor">The scale factor.</param>
        /// <returns>Returns the scaled vector.</returns>
        public static FPVector operator /(FPVector value1, FP value2)
        {
            FPVector result;

            FPVector.Divide(ref value1, value2, out result);
            return(result);
        }
예제 #2
0
        /// <summary>
        /// Divides a vector by a factor.
        /// </summary>
        /// <param name="value1">The vector to divide.</param>
        /// <param name="scaleFactor">The scale factor.</param>
        /// <returns>Returns the scaled vector.</returns>
        public static FPVector Divide(FPVector value1, FP scaleFactor)
        {
            FPVector result;

            FPVector.Divide(ref value1, scaleFactor, out result);
            return(result);
        }