Quaternion.opUnary

Unary operation for "-".

  1. Quaternion!T opUnary()
  2. Quaternion!T opUnary()
    struct Quaternion(T)
    const
    opUnary
    (
    string op
    )
    ()
    if (
    op == "-"
    )
    if (
    __traits(isArithmetic, T)
    )
  3. Quaternion!T opUnary()

Return Value

Type: Quaternion!T

a quaternion whose sign is inverted

Meta