Define VEC_DEF_VECTOR¶
Defined in File vector_macros.h
Define Documentation¶
-
VEC_DEF_VECTOR(func, size)¶
Declare/define a
Vec<size> func(const Vec<size>&)overload (delegating to theState-based implementation) plus aMat<-1,size> func(const Mat<-1,size>&)overload that applies it row-wise.VEC_DEF_VECTORdeclares both overloads (e.g. attitude_conversions.h’sScalarFirstToLast/ScalarLastToFirst/NormalizeQuatfor quaternions, coordinate_conversions.h’sEastNorthUpToAzElRange/AzElRangeToEastNorthUp);VEC_IMP_VECTORdefines 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.