コード例 #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 TSVector4 operator /(TSVector4 value1, FP value2)
    {
        TSVector4 result;

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

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