POV-Ray : Newsgroups : povray.advanced-users : Vector Components : Vector Components Server Time
28 Jul 2024 16:26:15 EDT (-0400)
  Vector Components  
From: nomail
Date: 15 Sep 2004 16:05:01
Message: <web.4148a03fe2a5f8e58b2587f70@news.povray.org>
I am trying to make a function which uses a vector cordnate return a value.
Within this the I am trying to pull the y component of the input to do a
compareson on it.  I have tried with both #if and #switch and have the same
problem.

#declare MyFn = function {
  #switch ( y )
    #case ( 1 )
      // funcion code 1
    #break // 1
    #case ...
  #end // switch
}

Parse Error: Float expected but vector or color expression found.

Is there a vector function I can use to get they y component, MyFn.y, <y> or
such?

-=<{()}>=-

 Thorcane

-=<{()}>=-


Post a reply to this message

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