Cuberite
A lightweight, fast and extensible game server for Minecraft
|
Allows formatting a Vector<T> using the same format specifiers as for T e.g. More...
#include <Vector3.h>
Public Member Functions | |
template<typename FormatContext > | |
auto | format (const Vector3< What > &a_Vec, FormatContext &a_Ctx) |
Private Types | |
using | Super = fmt::formatter< What > |
Private Member Functions | |
template<typename FormatContext , size_t Len> | |
void | Write (FormatContext &a_Ctx, const char(&a_Str)[Len]) |
template<typename FormatContext > | |
void | Write (FormatContext &a_Ctx, const What &a_Arg) |
Allows formatting a Vector<T> using the same format specifiers as for T e.g.
fmt::format("{0:0.2f}", Vector3f{0.0231f, 1.2146f, 1.0f}) == "{0.02, 1.21, 1.00}"
|
inlineprivate |
|
inlineprivate |