Kp
5bb9c88979
Add vm_vec_sub that returns result
2014-10-29 03:24:31 +00:00
Kp
22ff219877
Factor out dividing vms_vector elements by a fix
2014-10-29 03:10:30 +00:00
Kp
c7b2735e74
Mark vm_vector_2_matrix vectors const
2014-10-26 21:37:13 +00:00
Kp
c928c09884
Skip sqrt for homing check
2014-10-10 02:41:51 +00:00
Kp
6b93309ae5
Pass vm_vec_make arg by &
2014-10-02 03:02:35 +00:00
Kp
04de7920ed
Pass vm_dist_to_plane arg by &
2014-10-01 02:28:42 +00:00
Kp
b65e9ecb61
Pass vm_extract_angles_vector arg by &
2014-10-01 02:28:42 +00:00
Kp
faeeef9b52
Pass vm_extract_angles_matrix arg by &
2014-10-01 02:28:42 +00:00
Kp
83ccb15459
Pass vm_matrix_x_matrix arg by &
2014-10-01 02:28:42 +00:00
Kp
5af79382a5
Pass vm_vec_rotate arg by &
2014-10-01 02:28:42 +00:00
Kp
99f681c8ea
Pass vm_vector_2_matrix arg by &
2014-10-01 02:28:42 +00:00
Kp
e6cb533007
Pass vm_vec_ang_2_matrix arg by &
2014-10-01 02:28:42 +00:00
Kp
d238b4a562
Pass vm_angles_2_matrix arg by &
2014-10-01 02:28:42 +00:00
Kp
b26f385b0e
Pass vm_vec_delta_ang_norm arg by &
2014-10-01 02:28:42 +00:00
Kp
feb7d028e4
Pass vm_vec_delta_ang arg by &
2014-10-01 02:28:42 +00:00
Kp
ee7e23482e
Pass vm_vec_perp arg by &
2014-10-01 02:28:42 +00:00
Kp
f509b49dc3
Pass vm_vec_normal arg by &
2014-10-01 02:28:42 +00:00
Kp
7ed6a9a250
Rename vm_vec_crossprod -> vm_vec_cross
2014-10-01 02:28:42 +00:00
Kp
a99466f8c8
Pass vm_vec_crossprod arg by &
2014-10-01 02:28:42 +00:00
Kp
73545f1dab
Pass vm_vec_normalized_dir_quick arg by &
2014-10-01 02:28:41 +00:00
Kp
b5f443f21e
Pass vm_vec_normalized_dir arg by &
2014-10-01 02:28:41 +00:00
Kp
63eeb60be1
Pass vm_vec_copy_normalize_quick arg by &
2014-10-01 02:28:41 +00:00
Kp
0b691365a7
Pass vm_vec_copy_normalize arg by &
2014-10-01 02:28:41 +00:00
Kp
1fff2db9a8
Pass vm_vec_dist_quick arg by &
2014-10-01 02:28:41 +00:00
Kp
ac39749382
Pass vm_vec_dist arg by &
2014-10-01 02:28:41 +00:00
Kp
05a91f9b58
Pass vm_vec_scale_add2 arguments by &
2014-09-28 21:43:14 +00:00
Kp
4104bf4f11
Pass vm_vec_scale_add arguments by &
2014-09-28 21:43:14 +00:00
Kp
b5949cc4a0
Pass vm_vec_copy_scale arguments by &
2014-09-28 21:43:14 +00:00
Kp
7dff3c7fa9
Pass vm_vec_avg arguments by &
2014-09-28 21:43:01 +00:00
Kp
d6c06e40e7
Pass vm_vec_sub2 arguments by &
2014-09-28 21:43:00 +00:00
Kp
0b2636d535
Pass vm_vec_add2 arguments by &
2014-09-28 21:43:00 +00:00
Kp
ba0b91554c
Remove vm_vec_dotprod -> vm_vec_dot redirect
2014-09-28 21:41:59 +00:00
Kp
00b59c3058
Pass vm_vec_dot arguments by &
2014-09-28 21:11:48 +00:00
Kp
321bbe37d8
Pass vm_vec_sub arguments by &
2014-09-28 21:11:45 +00:00
Kp
2107b52764
Pass vm_vec_add arguments by &
2014-09-28 21:11:40 +00:00
Kp
6c30bb5d98
Pass vm_vec_scale2 dest by &
2014-09-28 21:11:36 +00:00
Kp
74925e9b45
Pass vm_vec_scale dest by &
2014-09-28 21:11:05 +00:00
Kp
69968349cb
Pass vm_transpose_matrix m by &
2014-09-28 21:11:04 +00:00
Kp
f12273746f
Pass vm_vec_zero v by &
2014-09-28 21:11:04 +00:00
Kp
a620a59bda
Pass vm_vec_normalize_quick v by &
2014-09-28 21:11:04 +00:00
Kp
a550673639
Pass vm_vec_normalize v by &
2014-09-28 21:11:03 +00:00
Kp
dfdd4ddd29
Pass vm_vec_mag_quick v by const&
2014-09-28 21:11:03 +00:00
Kp
1e6bf36e20
Pass vm_vec_mag v by const&
2014-09-28 21:11:03 +00:00
Kp
7ddba1d15e
Pass vm_vec_negate v by reference
2014-09-28 21:09:37 +00:00
Kp
89a77c4869
Remove never used vm_vec_avg4
2014-09-28 21:09:32 +00:00
Kp
eefdce5b04
Reduce nesting of vms_vector::{x,y,z}
2014-08-22 02:27:13 +00:00
Kp
af0759af59
Remove vms_vector::xyz
2014-08-22 02:27:00 +00:00
Kp
ebb1b70350
Fix polymodel writing on x64
...
Packed writing a structure containing a pointer, but reading it as an
int, is wrong on x64.
2014-07-26 04:01:35 +00:00
Kp
a4f7f607db
List initialize input to vm_vec_zero
2014-07-19 03:09:26 +00:00
Kp
afeaa09e9a
Replace vm_copy_transpose_matrix with vm_transposed_matrix
...
Also, delete obsolete broken inlining support.
2014-07-14 02:17:40 +00:00
Kp
4c7249a016
Return vms_matrix from vm_matrix_x_matrix
2014-07-14 02:17:40 +00:00
Kp
03574d0f5e
Change vm_vec_* macros to inline functions
2014-07-13 03:43:32 +00:00
zico
ad7cb106bc
Changed custom D1X license to GPLv3
2014-06-01 19:55:23 +02:00
Kp
073f00974a
Eliminate uses of the typedef struct X { ... } X; pattern
...
C++ does not require this pattern.
import re, fileinput
to = re.compile(r'^typedef struct ([a-z_A-Z]+)\s*{')
tc = re.compile(r'^}(.*?)\s*([a-z_A-Z]+);$')
osn = None
for line in fileinput.input(inplace=True):
m = to.match(line)
if m:
osn = m.group(1)
print 'struct %s\n{' % osn
continue
if osn:
m = tc.match(line)
if m:
csn = m.group(2)
if osn == csn:
print '}%s;' % m.group(1)
osn = None
continue
else:
osn = None
print line,
2013-12-28 22:48:07 +00:00
Kp
9de54cfa74
Switch to C++ linkage
...
import fileinput
guard = 0
cxxguard = '#ifdef __cplusplus\n'
for line in fileinput.input(inplace=True):
if line == cxxguard:
guard = 1
continue
if guard:
if line == 'extern "C" {\n':
guard = 2
continue
if line == '}\n':
guard = 0
continue
if guard == 2:
assert(line == '#endif\n')
guard = 0
print cxxguard,
continue
print line,
2013-12-06 03:35:32 +00:00
Kp
ed8484f096
Remove unnecessary packing on vms_vector
2013-11-08 03:14:43 +00:00
Kp
9dec31d801
Remove unused vms_svec
2013-11-01 02:58:05 +00:00
Kp
eb65b73b2a
Move common/3d/draw.c -> common/3d/draw.cpp
2013-08-03 17:45:22 +00:00
Kp
4577dd3977
Merge branch 'd2x-rebirth/master' into unification/master
2013-07-21 21:34:46 +00:00
Kp
a1ba420031
Mark various parameters and variables as const
2013-07-20 23:12:24 +00:00
Kp
012d8e249b
Merge branch d1x-rebirth/master into unification/master
2013-07-19 22:32:28 +00:00
Kp
ac1af0a58a
Move */include/vecmat.h -> common/include/vecmat.h
2013-03-03 01:03:33 +00:00