22 lines
346 B
Markdown
22 lines
346 B
Markdown
|
|
# Transform::InverseTransformPoint
|
||
|
|
|
||
|
|
```cpp
|
||
|
|
Vector3 InverseTransformPoint(const Vector3& point) const
|
||
|
|
```
|
||
|
|
|
||
|
|
对点进行逆变换。
|
||
|
|
|
||
|
|
**参数:**
|
||
|
|
- `point` - 世界空间中的点
|
||
|
|
|
||
|
|
**返回:** `Vector3` - 局部空间中的点
|
||
|
|
|
||
|
|
**复杂度:** O(1)
|
||
|
|
|
||
|
|
**示例:**
|
||
|
|
|
||
|
|
```cpp
|
||
|
|
Transform t;
|
||
|
|
Vector3 localPos = t.InverseTransformPoint(worldPos);
|
||
|
|
```
|