Bear in mind that getAllFeatures() will grab all lines, and the first line/vector (referenced in your code) may not be the same line from frame to frame. The m_index field in the m_vectors can help with this.
In general, getMainFeatures() is a good place to start, because it will only return 1 line (the Vector) and the Vector will be the same line from frame to frame.
You might find the line_zumo_demo example helpful (even if you don’t have a Zumo base). It looks like you just want to track the main Vector (is this correct?)