slot 0.0.1
A real time UI render framework
载入中...
搜索中...
未找到
Math.h
浏览该文件的文档.
1//
2// Created by zhou_zhengming on 2026/5/11.
3//
4
5#pragma once
6#include <DirectXMath.h>
7
8namespace z8 {
9class Math {
10public:
11 inline static DirectX::XMFLOAT4X4 Identity4x4 =
12 {
13 1.0f, 0.0f, 0.0f, 0.0f,
14 0.0f, 1.0f, 0.0f, 0.0f,
15 0.0f, 0.0f, 1.0f, 0.0f,
16 0.0f, 0.0f, 0.0f, 1.0f
17 };
18
19 template<typename T>
20 static T Clamp(const T& x, const T& low, const T& high)
21 {
22 return x < low ? low : (x > high ? high : x);
23 }
24};
25}
Definition Math.h:9
static DirectX::XMFLOAT4X4 Identity4x4
Definition Math.h:11
static T Clamp(const T &x, const T &low, const T &high)
Definition Math.h:20
Definition Application.h:14