POV-Ray : Newsgroups : povray.off-topic : More math fail : More math fail Server Time
4 Sep 2024 13:18:13 EDT (-0400)
  More math fail  
From: Orchid XP v8
Date: 17 Jan 2010 15:42:00
Message: <4b537618$1@news.povray.org>
All these years, I thought the correct way to compute the cross product 
of two vectors is

   x3 = y1 z2 - z1 y2
   y3 = x1 z2 - z1 x2
   z3 = x1 y2 - y1 x2

But, apparently, I was wrong. The correct way is in fact

   x3 = y1 z2 - z1 y2
   y3 = z1 x2 - x1 z2
   z3 = x1 y2 - y1 x2

In particular, this results in y3 having the opposite sign. No wonder my 
program can't construct an orthogonal vector basis! >_<

FAIL.

The best part? I got this wrong in a library I released. Yes, my program 
is failing due to a bug in my own damned library... :'{

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.