projects
/
physik
/
posic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
auto bond feature added
[physik/posic.git]
/
math
/
math.h
diff --git
a/math/math.h
b/math/math.h
index
8ff1bec
..
147f4c0
100644
(file)
--- a/
math/math.h
+++ b/
math/math.h
@@
-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;
}