23 lines
373 B
Markdown
23 lines
373 B
Markdown
|
|
# Transform::TransformPoint
|
||
|
|
|
||
|
|
```cpp
|
||
|
|
Vector3 TransformPoint(const Vector3& point) const
|
||
|
|
```
|
||
|
|
|
||
|
|
变换点(包含位置、旋转和缩放)。
|
||
|
|
|
||
|
|
**参数:**
|
||
|
|
- `point` - 要变换的点
|
||
|
|
|
||
|
|
**返回:** `Vector3` - 变换后的点
|
||
|
|
|
||
|
|
**复杂度:** O(1)
|
||
|
|
|
||
|
|
**示例:**
|
||
|
|
|
||
|
|
```cpp
|
||
|
|
Transform t;
|
||
|
|
Vector3 localPos(1.0f, 0.0f, 0.0f);
|
||
|
|
Vector3 worldPos = t.TransformPoint(localPos);
|
||
|
|
```
|