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

minh thu noteed at gmail.com
Wed Nov 29 10:52:37 EST 2006

> [snip]
> If you're doing matrix transformations, you might also like to consider
> using separate PositionN and DirectionN types instead of VecN to make use of
> the type system to catch some math bugs but I haven't looked into this
> myself yet so I don't know whether this would be practical or not.

Indeed, not only bug catching : actually, some operations on points,
vectors and normals have to be done differently.


> Best regards,
> Brian.

More information about the Haskell-Cafe mailing list