- Fix link resolution with proper relative/absolute path handling - Improve link styling with underline decoration - Hide leaf nodes from tree, only show directories - Fix log file path for packaged app
41 lines
638 B
Markdown
41 lines
638 B
Markdown
# Quaternion::Normalized / Normalize
|
|
|
|
## 实例方法
|
|
|
|
```cpp
|
|
Quaternion Normalized() const
|
|
```
|
|
|
|
返回当前四元数的归一化副本(不修改原四元数)。
|
|
|
|
**返回:** `Quaternion` - 归一化后的四元数副本
|
|
|
|
**复杂度:** O(1)
|
|
|
|
**示例:**
|
|
|
|
```cpp
|
|
Quaternion unit = quat.Normalized(); // quat 保持不变
|
|
```
|
|
|
|
## 静态方法
|
|
|
|
```cpp
|
|
static Quaternion Normalize(const Quaternion& q)
|
|
```
|
|
|
|
归一化四元数。
|
|
|
|
**参数:**
|
|
- `q` - 要归一化的四元数
|
|
|
|
**返回:** `Quaternion` - 归一化后的四元数
|
|
|
|
**复杂度:** O(1)
|
|
|
|
**示例:**
|
|
|
|
```cpp
|
|
Quaternion unit = Quaternion::Normalize(quat);
|
|
```
|