|
![](/i/fill.gif) |
Greg M. Johnson wrote:
>
> Boy, you are a math whiz! But I'm slightly confused in your notation,
> it's almost as if you wrote three matrices instead of one. By
> "determinant of this matrix", you mean:
>
> A.x * B.y * C.z + .....
>
> Will pov or one of your macros do this calc for me?
Thanks to the fact that it's a 3x3 matrix with it elements conveniently
stored in three vectors, and the fact that the determinant of a 3x3
matrix can be found by taking the cross product of the second and third rows, and
taking the dot
product of that result and the first row, the determinant can be easily found with POV
code.
#macro Determinant(A,B,C)
vdot(A,vcross(B,C))
#end
Regards,
John
--
Hmm, 62 words in one sentence. I guess I've been reading too much
Victor Hugo...
Post a reply to this message
|
![](/i/fill.gif) |