32 #ifndef HERMES_GEOMETRY_MATH_ELEMENT_H
33 #define HERMES_GEOMETRY_MATH_ELEMENT_H
43 template<
typename NUMERIC_TYPE, u64 COMPONENT_COUNT>
59 .field_size_in_bytes =
sizeof(NUMERIC_TYPE),
60 .count = COMPONENT_COUNT,
63 .type = DataTypes::typeFrom<NUMERIC_TYPE>()
static char default_color[6]
"\e[39m"
Definition: console_colors.h:61
Interface used by all basic geometric entities.
Definition: math_element.h:44
static constexpr u64 componentCount()
Gets the number of dimensional components.
Definition: math_element.h:50
static MemoryDumper::RegionLayout memoryDumpLayout()
Gets memory layout.
Definition: math_element.h:56
static constexpr u64 numericTypeSizeInBytes()
Gets the size in bytes of underlying data type.
Definition: math_element.h:53
static NUMERIC_TYPE numeric_data
Underlying data type.
Definition: math_element.h:47
uint64_t u64
64 bit size unsigned integer type
Definition: defs.h:89
Memory region description.
Definition: memory_dump.h:97
std::size_t offset
Layout offset in bytes.
Definition: memory_dump.h:197