Пример #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 TSVector operator /(TSVector value1, FP value2)
    {
        TSVector result;

        TSVector.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 TSVector Divide(TSVector value1, FP scaleFactor)
    {
        TSVector result;

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