Abusing the debugger as calculator

Just stumbled across this code in one of my private projects:
core::vector3df a(4,  2,-4);
core::vector3df b(-4,-4, 2);
core::vector3df c(2, 4, 4);

float v = a.crossProduct(b).dotProduct(c);
First I had no idea what the did and why I wrote it. But then I remembered: It calculates the volume of the parallelepiped described by the vectors a, b and c. I just calculated the volume there because I needed it for a math exercise and was to lazy to calculate it in my brain. And I didn't erase the code again. ;) Maybe I should stop using VC++'s debugger as calculator.

Only one comment:

Parallelepi..What!!? :)
lxguy - 15 07 05 - 07:26


Name:  
Remember personal info?
yes
no
Email (optional):
URL (optional):
Enter "layered" (antispam):
Comment:Emoticons / Textile

  ( Register your username / Log in )

Notify: Yes, send me email when someone replies.  

Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.
Note: If you type in your email adress above, it will be visible to other visitors, although it will be hidden for bots using javaScript.