[Haskell-cafe] [Haskell] Defining Cg, HLSL style vectors in Haskell

Slavomir Kaslev slavomir.kaslev at gmail.com
Thu Nov 30 03:21:50 EST 2006


On 11/29/06, Krasimir Angelov <kr.angelov at gmail.com> wrote:
> It is possible of course but your definition doesn't correspond to any
> operation in the usual vector algebra. By the way how do you define
> (*)? Isn't it 3D vector multiplication?
>

(*) is per component multiplication, as it is in Cg/HLSL. For vector
to vector, vector to matrix, etc. multiplication there is mul.

Cheers.

-- 
Slavomir Kaslev


More information about the Haskell-Cafe mailing list