/// <summary> /// Multiplies a vector by a scalar. /// </summary> /// <param name="v">A <see cref="Vector3D"/> instance.</param> /// <param name="s">A scalar.</param> /// <returns>A new <see cref="Vector3D"/> containing the result.</returns> public static Vector3D operator *(double s, Vector3D v) { return(Vector3D.Multiply(v, s)); }
/// <summary> /// Multiplies a vector by a scalar. /// </summary> /// <param name="vector">A <see cref="Vector3D"/> instance.</param> /// <param name="scalar">A double-precision floating-point number.</param> /// <returns>A new <see cref="Vector3D"/> containing the result.</returns> public static Vector3D operator *(double scalar, Vector3D vector) { return(Vector3D.Multiply(vector, scalar)); }