|
|
Le_Forgeron <jgr### [at] freefr> wrote:
> Le 26/05/2017 à 10:33, dick balaska a écrit :
> #include "math.inc"
>
> > #if (VEq(Q,<1,1,1>)
> >
>
> for 5D: VEq5D
Most excellent.
Thanks to both of you gentlemen. I had not thought to look in the vector
functions for a simple Boolean comparison.
I'm thinking that a macro that does something like a progressive #ifdef(Q.x),
#ifdef (Q.y), #ifdef(Q.z) ..... would be able to count vector elements and
return the size of the vector, and if there's only 1 element, then it's a
scalar.
Post a reply to this message
|
|