Quaternion.opBinary

Binary operation between scalar type for "*" or "/".

  1. Quaternion!(CommonType!(T, S)) opBinary(Quaternion!S q)
  2. Quaternion!(CommonType!(T, S)) opBinary(Quaternion!S q)
  3. Quaternion!(CommonType!(T, S)) opBinary(S e)
    struct Quaternion(T)
    const
    Quaternion!(CommonType!(T, S))
    opBinary
    (
    string op
    S
    )
    (
    S e
    )
    if (
    __traits(isArithmetic, S) &&
    (
    op == "*" ||
    op == "/"
    )
    )
    if (
    __traits(isArithmetic, T)
    )

Parameters

e S

target scalar value

Return Value

Type: Quaternion!(CommonType!(T, S))

calculated quaternion

Meta