/Engine/Source/Runtime/Core/Public/Math/TransformCalculus3D.h
Serves as a good base example of how to write a class that supports the basic transform calculus operations.
template<typename T> class TScale