POV-Ray : Newsgroups : povray.newusers : Translating a "point" : Re: Translating a "point" Server Time
25 Apr 2024 21:18:07 EDT (-0400)
  Re: Translating a "point"  
From: clipka
Date: 29 Feb 2016 01:03:49
Message: <56d3df45$1@news.povray.org>
Am 29.02.2016 um 01:30 schrieb Bald Eagle:
> Alain <kua### [at] videotronca> wrote:
> 
>> 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>
> 
> Right, it's easy and simple once you see the solution clearly.
> I was (as usual) trying to overcomplicate it.
> I had "translate" in my head, and wanted to put a vector into a statement, but
> "points" are not POV-Ray primitives, and I was trying to use obj { translate {
> ......   arrrrrgggghhhh.
> 
> Then I walked away from it for a bit, and I disabused my mind of that.
> 
> Though in some way it seems like it ought to be possible to do exactly that...

Well, you _can_ use:

#declare MyTransform = transform { translate { ... } }
#declare Foo2 = vtransform(Foo1,MyTransform);


Post a reply to this message

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