POV-Ray : Newsgroups : povray.binaries.images : Rotation matrices : Re: Rotation matrices Server Time
3 May 2024 01:49:52 EDT (-0400)
  Re: Rotation matrices  
From: Tor Olav Kristensen
Date: 3 Mar 2023 09:45:00
Message: <web.6402079b565eea12d105cea189db30a9@news.povray.org>
"Tor Olav Kristensen" <tor### [at] TOBEREMOVEDgmailcom> wrote:
>...
>         tmp = m00*ai + m01
>         m01 = int(m00)
>         m00 = int(tmp)
>         tmp = m10*ai + m11
>         m11 = int(m10)
>         m10 = int(tmp)
>...

Sorry, that was not very Pythonic. I try again:

        m00, m01 = int(m00*ai + m01), int(m00)
        m10, m11 = int(m10*ai + m11), int(m10)

--
Tor Olav
http://subcube.com
https://github.com/t-o-k


Post a reply to this message

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