POV-Ray : Newsgroups : povray.advanced-users : Inverse of matrix? : Re: Inverse of matrix? Server Time
1 Jul 2024 06:04:13 EDT (-0400)
  Re: Inverse of matrix?  
From: SharkD
Date: 15 Nov 2009 02:45:44
Message: <4affb1a8@news.povray.org>
On 11/14/2009 11:27 PM, SharkD wrote:
> I have a matrix:
>
> matrix
> <
> CamR.x, CamR.y, CamR.z,
> CamU.x, CamU.y, CamU.z,
> CamD.x, CamD.y, CamD.z,
> CamL.x, CamL.y, CamL.z
>  >
>
> What is the inverse?
>
> Thanks.
>
> Mike

Nevermind. I found some code to do it here:

http://www.euclideanspace.com/maths/algebra/matrix/functions/inverse/index.htm

Do I need to flip the POV-Ray matrix first? In POV-Ray, translation 
occurs in the last *row*, whereas in the page I linked to translation 
occurs in the last *column*.

Mike


Post a reply to this message

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