/// <summary> /// Divides a scalar by a vector. /// </summary> /// <param name="v">A <see cref="Vector2D"/> instance.</param> /// <param name="s">A scalar</param> /// <returns>A new <see cref="Vector2D"/> containing the quotient.</returns> /// <remarks> /// result[i] = s / v[i] /// </remarks> public static Vector2D operator/(double s, Vector2D v) { return(Vector2D.Divide(s, v)); }
/// <summary> /// Divides a scalar by a vector. /// </summary> /// <param name="vector">A <see cref="Vector2D"/> instance.</param> /// <param name="scalar">A scalar</param> /// <returns>A new <see cref="Vector2D"/> containing the quotient.</returns> /// <remarks> /// result[i] = scalar / vector[i] /// </remarks> public static Vector2D operator /(double scalar, Vector2D vector) { return(Vector2D.Divide(scalar, vector)); }
/// <summary> /// Divides a vector by a scalar. /// </summary> /// <param name="v">A <see cref="Vector2D"/> instance.</param> /// <param name="s">A scalar</param> /// <returns>A new <see cref="Vector2D"/> containing the quotient.</returns> /// <remarks> /// result[i] = v[i] / s; /// </remarks> public static Vector2D operator/(Vector2D v, double s) { return(Vector2D.Divide(v, s)); }
/// <summary> /// Divides a vector by a scalar. /// </summary> /// <param name="vector">A <see cref="Vector2D"/> instance.</param> /// <param name="scalar">A scalar</param> /// <returns>A new <see cref="Vector2D"/> containing the quotient.</returns> /// <remarks> /// result[i] = vector[i] / scalar; /// </remarks> public static Vector2D operator /(Vector2D vector, double scalar) { return(Vector2D.Divide(vector, scalar)); }