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 13:09:22 EDT (-0400)
  Re: How to address last 2 components of 5-component vectors?  
From: Bald Eagle
Date: 7 Jul 2016 13:40:00
Message: <web.577e93d3ff0686005e7df57c0@news.povray.org>
Jim Holsenback <spa### [at] nothanksnet> wrote:

> OK ... so please be a bit more specific. What /exactly/ is "bad" and
> needs clarification. Comment on the talk page and I'll work it into the
> docs.

Jerome posted at
http://wiki.povray.org/content/Reference_Talk:Vector_Expressions

"The page Vector sends to Numeric Expression, but that one dismiss any details
about DOT_ITEM by sending back to Vector / Colour Pages, none of which cover the
subject."

I think that addressing the following ought to explicitly, clearly and
unambiguously describe what the values are as well as show examples of their
usage.

(I'm assuming that Vector.gray = (Vector.red + Vector.green + Vector.blue)/3
and that would be a helpful tidbit in the docs as well. )

#version 3.7;
global_settings {assumed_gamma 1.0}
#include "debug.inc"
  Set_Debug (true)

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

#debug concat( "Vector.x =        ", str(Vector.x, 3, 0), "\n")
#debug concat( "Vector.red =      ", str(Vector.red, 3, 0), "\n")
#debug concat( "Vector.u =        ", str(Vector.u, 3, 0), "\n\n")

#debug concat( "Vector.y =        ", str(Vector.y, 3, 0), "\n")
#debug concat( "Vector.green =    ", str(Vector.green, 3, 0), "\n")
#debug concat( "Vector.v =        ", str(Vector.v, 3, 0), "\n\n")

#debug concat( "Vector.blue =     ", str(Vector.blue, 3, 0), "\n")
#debug concat( "Vector.z =        ", str(Vector.z, 3, 0), "\n\n")

#debug concat( "Vector.t =        ", str(Vector.t, 3, 0), "\n")
#debug concat( "Vector.filter =   ", str(Vector.filter, 3, 0), "\n\n")

#debug concat( "Vector.transmit = ", str(Vector.transmit, 3, 0), "\n\n")

#debug concat( "Vector.gray = ", str(Vector.gray, 3, 0), "\n\n")


Post a reply to this message

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