Changeset 249 for trunk/thune/math.c

Show
Ignore:
Timestamp:
08/11/06 16:34:10 (2 years ago)
Author:
krobillard
Message:

Thune - Random, eq?, and zero? now handle vec3!.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/thune/math.c

    r248 r249  
    390390        ur_logic(tos) = genrand_int32() & 1; 
    391391    } 
     392#ifdef UR_CONFIG_MATH3D 
     393    else if( ur_is(tos, UT_VEC3) ) 
     394    { 
     395        tos->vec3.xyz[0] *= genrand_real2(); 
     396        tos->vec3.xyz[1] *= genrand_real2(); 
     397        tos->vec3.xyz[2] *= genrand_real2(); 
     398    } 
     399#endif 
    392400    else if( ur_isAWord(tos) ) 
    393401    {