VulkanEngine 0.1
Graphics engine using Vulkan
Loading...
Searching...
No Matches
Constants.h
1// Copyright (c) 2024 Michael Carlie. All Rights Reserved.
2//
3// This software is released under the MIT License.
4// https://opensource.org/licenses/MIT
5
6#ifndef INCLUDE_VULKANENGINE_CONSTANTS_H_
7#define INCLUDE_VULKANENGINE_CONSTANTS_H_
8
9#include <Eigen/Eigen>
10
11namespace VulkanEngine {
12
14namespace Constants {
15
17template <typename T>
18constexpr T pi() {
19 return static_cast<T>(3.14159265358979323846264338327950288419716939937510L);
20}
21
23template <typename T>
24constexpr T e() {
25 return static_cast<T>(2.71828182845904523536028747135266249775724709369995L);
26}
27
28} // namespace Constants
29
30} // namespace VulkanEngine
31
32#endif // INCLUDE_VULKANENGINE_CONSTANTS_H_
constexpr T e()
Definition of e to use in application.
Definition: Constants.h:24
constexpr T pi()
Definition of pi to use in application.
Definition: Constants.h:18
TODO development of this class is in progress.
Definition: Attribute.h:13