Re: [Vala] Operator overloading



On 27/03/2009, at 9:24 AM, Maciej Piechotka wrote:
i * j = k
-j * i = k

k/i = j or -j?

Do you mean left-divide or right-divide? In the first equation you are left-multiplying by i, the latter you are right-multiplying by i. "k / i" is ambiguous as to which it means.

http://en.wikipedia.org/wiki/Quaternion#Conjugation.2C_the_norm.2C_and_division


Cheers,
    James



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]