POV-Ray : Newsgroups : povray.newusers : What does the 'mod' operator do? : Re: What does the 'mod' operator do? Server Time
10 Nov 2025 18:58:49 EST (-0500)
  Re: What does the 'mod' operator do?  
From: Bald Eagle
Date: 10 Nov 2025 10:25:00
Message: <web.691203491bdd4431c93adb4f25979125@news.povray.org>
"Kenneth" <kdw### [at] gmailcom> wrote:
> ... it also suggested a particular
> video...which I now can't find. The mathematician host quickly discussed some
> typical (i.e. pure-integer) examples of using mod...but then began a rather
> abstract discourse on how modulo should be thought of in other NON-math
> contexts.

Video length?
Background?
Visual aids?
Presenter?

You're at the part where things get interesting - and remarkably useful - if you
stick with it and follow through far enough.

I can attest that there are an amazing number of things that can be done with
the simplest of "tricks" - just using vcross, vdot, matrix determinants,
eigenvalues, and vector swizzling.

And while that may all sound complicated and "out of reach" - the point is that
you don't have to understand a damned thing about how any of it is "done" - you
just need to understand the significance of the result.   What it means.

And then you can go on to code some pretty amazing stuff, that's easy to write
(as a result of knowing the "tricks"), and is FAST - compared to the usual "I'm
going to write my code in the exact same way as I went about figuring this out
the long way" that we all do so often.

- BW


Post a reply to this message

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