]> hackdaworld.org Git - physik/posic.git/blobdiff - math/math.h
post proc stand alone tool
[physik/posic.git] / math / math.h
index 8ff1bec031b76a9050ebceebae26452333f705bd..147f4c09734fd890371f9b5159270d09b9cb97ec 100644 (file)
@@ -80,7 +80,12 @@ static inline int v3_set(t_3dvec *vec,double *ptr) {
 
 static inline int v3_copy(t_3dvec *trg,t_3dvec *src) {
 
-       memcpy(trg,src,sizeof(t_3dvec));
+       //memcpy(trg,src,sizeof(t_3dvec));
+
+       /* faster this way? */
+       trg->x=src->x;
+       trg->y=src->y;
+       trg->z=src->z;
 
        return 0;
 }