POV-Ray : Newsgroups : povray.advanced-users : How to address last 2 components of 5-component vectors? : Re: How to address last 2 components of 5-component vectors? Server Time
26 Apr 2024 18:29:07 EDT (-0400)
  Re: How to address last 2 components of 5-component vectors?  
From: Bald Eagle
Date: 7 Jul 2016 10:55:00
Message: <web.577e6c85ff0686005e7df57c0@news.povray.org>
So,
after more coffee, and more reading, and piecing together the breadcrumbs, and
recalling doing something like this in 2013,

I deduced that with

#declare Vector = <1, 2, 3>;

individual components can be addressed as:

Vector.x, Vector.y, and Vector.z
but also as
Vector.u, Vector.v, and Vector.t

the 4th "TERM" in a 4-term vector is filter, since POV-Ray interprets this as a
color expression.
so it's addressed as
Vector.filter (not Vector.f)
and a 5th term is transmit
so it's addressed as
Vector.transmit (not Vector.t - that would be Term 3)


Search terms (for future reference)
..x .y .z .t .u .v .filter .transmit
4-component vector
5-component vector
4-term vector
5-term vector
4-term color expression
5-term color expression


Post a reply to this message

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