Quaternion.opBinary

Define binary operator + and -

  1. Quaternion opBinary(Quaternion rhs)
    struct Quaternion(T = floatt)
    nothrow @nogc pure const
    opBinary
    (
    string op
    )
    (
    auto ref const Quaternion rhs
    )
    if (
    op == "+" ||
    op == "-"
    )
    if (
    __traits(isFloating, T)
    )
  2. Quaternion opBinary(T rhs)
  3. Quaternion opBinary(Quaternion rhs)

Meta