Re: [Vala] Operator overloading



William Swanson wrote:

--- Quaternions ---
Quaternions are complex numbers generalized into four dimensions. As
with complex numbers, all four basic operators  (+ - * /) are
well-defined. Quaternions are used to represent rotations in 3D, among
other things.

Nearly. Quaternions doesn't have defined division as:

 i * j = k
-j * i = k

k/i = j or -j?

Regards
-- 
I've probably left my head... somewhere. Please wait untill I find it.
Homepage (pl_PL): http://uzytkownik.jogger.pl/
(GNU/)Linux User: #425935 (see http://counter.li.org/)






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