Define VEC_DEF_VECTOR

Define Documentation

VEC_DEF_VECTOR(func, size)

Declare/define a Vec<size> func(const Vec<size>&) overload (delegating to the State-based implementation) plus a Mat<-1,size> func(const Mat<-1,size>&) overload that applies it row-wise.

VEC_DEF_VECTOR declares both overloads (e.g. attitude_conversions.h’s ScalarFirstToLast/ScalarLastToFirst/NormalizeQuat for quaternions, coordinate_conversions.h’s EastNorthUpToAzElRange/AzElRangeToEastNorthUp); VEC_IMP_VECTOR defines them. The matrix overload lets a fixed-size state/vector conversion be applied to a batch of states (one per row), e.g. converting a whole trajectory’s quaternions in one call.