00001 #include <clu.h> 00002 00003 #define _CLU_MEMCPY(dest, src, size) \ 00004 (((dest) && (src) && (size)) ? \ 00005 memcpy((dest), (src), (size)) : \ 00006 0) 00007 00011 CLUquaternion* cluCopyQuaternion(CLUquaternion* dest, 00012 const CLUquaternion* src) 00013 { 00014 return (CLUquaternion*)_CLU_MEMCPY(dest, src, sizeof(CLUquaternion)); 00015 } 00016 00017 CLUplane* cluCopyPlane(CLUplane* dest,const CLUplane* src) 00018 { 00019 return (CLUplane*)_CLU_MEMCPY(dest, src, sizeof(CLUplane)); 00020 } 00021 00022 CLUsphere* cluCopySphere(CLUsphere* dest, const CLUsphere* src) 00023 { 00024 return (CLUsphere*)_CLU_MEMCPY(dest, src, sizeof(CLUsphere)); 00025 } 00026 00027 CLUcone* cluCopyCone(CLUcone* dest, const CLUcone* src) 00028 { 00029 return (CLUcone*)_CLU_MEMCPY(dest, src, sizeof(CLUcone)); 00030 } 00031 00032 CLUray* cluCopyRay(CLUray* dest, const CLUray* src) 00033 { 00034 return (CLUray*)_CLU_MEMCPY(dest, src, sizeof(CLUray)); 00035 } 00036 00037 CLUalignedbox* cluCopyAlignedBox(CLUalignedbox* dest, const CLUalignedbox* src) 00038 { 00039 return (CLUalignedbox*)_CLU_MEMCPY(dest, src, sizeof(CLUalignedbox)); 00040 } 00041