public TrackPoint(Vector3 pos, TrackPointState state, ulong ts) { x = pos.X; y = pos.Y; z = pos.Z; tracking_state = state; timestamp = ts; }
public TrackPoint(Vector3 pos, sl.OBJECT_TRACKING_STATE state, ulong ts) { x = pos.X; y = pos.Y; z = pos.Z; if (state == OBJECT_TRACKING_STATE.OK) { tracking_state = TrackPointState.OK; } else { tracking_state = TrackPointState.OFF; } timestamp = ts; }