Reusing calcVectorComponents