POV-Ray : Newsgroups : povray.newusers : Translating a "point" : Re: Translating a "point" Server Time
20 Apr 2024 03:10:24 EDT (-0400)
  Re: Translating a "point"  
From: Alain
Date: 28 Feb 2016 18:25:09
Message: <56d381d5$1@news.povray.org>

> Er,
> So I'm posting this in the New Users section, because it's likely to be
> something that helps those trying to figure out the basics, and because it's one
> of those simple things that I OUGHT to know, and likely have already used in the
> past, but forgotten. <rolls eyes>  <hangs head>
>
> I'd like to take a "point" (a vector), like <1, 2, 3> and "translate it" to "be
> at" another place.
>
> I wasn't sure if there was a vector function like vrotate that would be called
> "vtranslate" or something that did this.  My brain is just _not_ currently in
> "POV mode" and I figured it would take someone a single minute to set me
> straight.
>
> I'll likely spend the rest of the evening re-schooling myself in the ways of the
> Vector Jedi.
>
> Thanks!
>
>

Translating a point is just the addition of some displacement to that point.
You can also do a scalling like operation by multiplying that point by 
something like:
<1,2,3>*<8,7,6> is equivalent to scale <8,7,6>


Post a reply to this message

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