Vec.opBinary

Subtracts two vectors.

  1. MY_TYPE opBinary(Vec!(V, size) other)
  2. MY_TYPE opBinary(V scalar)
  3. MY_TYPE opBinary(Vec!(V, size) other)
    struct Vec(T, size_t size)
    const @nogc
    MY_TYPE
    opBinary
    (
    string op : "-"
    V
    )
    (
    Vec!(V, size) other
    )
    if (
    isNumeric!V
    )
    if (
    isNumeric!T &&
    size > 0
    )
  4. MY_TYPE opBinary(V factor)
  5. MY_TYPE opBinary(V factor)

Parameters

other Vec!(V, size)

The other vector.

Return Value

Type: MY_TYPE

A vector representing the difference of this and the other.

Meta