POV-Ray : Newsgroups : povray.beta-test : [includes] VPow does not work : Re: [includes] VPow does not work Server Time
29 Jul 2024 08:18:32 EDT (-0400)
  Re: [includes] VPow does not work  
From: Warp
Date: 15 Jun 2002 17:02:49
Message: <3d0bab78@news.povray.org>
Anders K. <and### [at] prostard2gcom> wrote:
> Why don't you add four-dimensional vectors, just to make it complete?

  Yes, why not?

#macro VectorSize(V)
  #local tmp = vstr(5, (V=V), "", 0, 0);
  (1 + (asc(substr(tmp,2,1))=49) +
       (asc(substr(tmp,3,1))=49) +
       (asc(substr(tmp,4,1))=49) +
       (asc(substr(tmp,5,1))=49))
#end

#declare V1 = 0;
#declare V2 = <1,2>;
#declare V3 = <3,4,5>;
#declare V4 = <3,4,5,6>;
#declare V5 = <6,7,8,9,10>;

#debug concat("Size of V1: ", str(VectorSize(V1),0,0),
            "\nSize of V2: ", str(VectorSize(V2),0,0),
            "\nSize of V3: ", str(VectorSize(V3),0,0),
            "\nSize of V4: ", str(VectorSize(V4),0,0),
            "\nSize of V5: ", str(VectorSize(V5),0,0), "\n")


-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

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