[][src]Function libeyelink_sys::eyelink_calculate_velocity

pub unsafe extern "C" fn eyelink_calculate_velocity(
    slen: c_int,
    vel: *mut f32,
    vel_sample: *mut FSAMPLE
) -> c_int

@ingroup velocity_acceleration Calculates overall velocity for left and right eyes separately. @param[in] slen Sample model to use for velocity calculation. Acceptable models are \c FIVE_SAMPLE_MODEL, \c NINE_SAMPLE_MODEL, \c SEVENTEEN_SAMPLE_MODEL and \c EL1000_TRACKER_MODEL. @param[out] vel A float array of 2 to fill in the calculated results. Upon return of this function, vel[0] will contain overall velocity for left eye and vel[1] will contain overall velocity for right eye. If velocity cannot be calculated for any reason(eg. insufficient samples, no data) MISSING_DATA is filled for the given velocity. @param[out] vel_sample Velocity for sample. Expects a FSAMPLE structure to fill in the sample, the velocity is calculated for.