初始提交: UE5.3项目基础框架
This commit is contained in:
@ -0,0 +1,30 @@
|
||||
// Copyright 2020-2024 CesiumGS, Inc. and Contributors
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <glm/glm.hpp>
|
||||
#include <string>
|
||||
|
||||
/**
|
||||
* @brief Utility functions for logging GLM data in Unreal
|
||||
*/
|
||||
class GlmLogging {
|
||||
public:
|
||||
/**
|
||||
* Print the given vector as a verbose `LogCesium`
|
||||
* message, with unspecified formatting.
|
||||
*
|
||||
* @param name The name that will be part of the message
|
||||
* @param vector The vector
|
||||
*/
|
||||
static void logVector(const std::string& name, const glm::dvec3& vector);
|
||||
|
||||
/**
|
||||
* Print the given matrix as a verbose `LogCesium`
|
||||
* message, with unspecified formatting.
|
||||
*
|
||||
* @param name The name that will be part of the message
|
||||
* @param matrix The matrix
|
||||
*/
|
||||
static void logMatrix(const std::string& name, const glm::dmat4& matrix);
|
||||
};
|
||||
Reference in New Issue
Block a user