Skip to content

Commit a058059

Browse files
committed
Cython engines pass all tests.
1 parent b82a897 commit a058059

5 files changed

Lines changed: 126 additions & 312 deletions

File tree

doc/SightHeight.png

452 KB
Loading

py_ballisticcalc.exts/py_ballisticcalc_exts/base_engine.pxd

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -22,31 +22,11 @@ cdef extern from "include/bclib.h" nogil:
2222
int WindSock_t_updateCache(WindSock_t *ws)
2323
V3dT WindSock_t_vectorForRange(WindSock_t *ws, double next_range_param)
2424

25-
ctypedef struct TrajDataFilter_t:
26-
int filter, current_flag, seen_zero
27-
double time_step, range_step
28-
double time_of_last_record, next_record_distance
29-
double previous_mach, previous_time
30-
V3dT previous_position, previous_velocity
31-
double previous_v_mach
32-
double look_angle
33-
3425
double getCorrection(double distance, double offset)
3526
double calculateEnergy(double bulletWeight, double velocity)
3627
double calculateOgw(double bulletWeight, double velocity)
3728

3829

39-
cdef TrajDataFilter_t TrajDataFilter_t_create(int filter_flags, double range_step,
40-
const V3dT *initial_position_ptr,
41-
const V3dT *initial_velocity_ptr,
42-
double time_step)
43-
cdef void TrajDataFilter_t_setup_seen_zero(TrajDataFilter_t * tdf, double height, const ShotProps_t *shot_props_ptr)
44-
cdef BaseTrajDataT TrajDataFilter_t_should_record(TrajDataFilter_t * tdf,
45-
const V3dT *position_ptr,
46-
const V3dT *velocity_ptr,
47-
double mach, double time)
48-
49-
5030
# Function to create and initialize a WindSock_t
5131
cdef WindSock_t * WindSock_t_create(object winds_py_list)
5232

0 commit comments

Comments
 (0)