Re: [Vala] Operator overloading
- From: James Livingston <doctau mac com>
- To: vala-list gnome org
- Subject: Re: [Vala] Operator overloading
- Date: Fri, 27 Mar 2009 18:20:23 +1000
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]