Files
XCEngine/docs/api/components/transform-component/transform-point.md

36 lines
688 B
Markdown
Raw Normal View History

# TransformPoint
Transform a point from local space to world space.
## Syntax
```cpp
Math::Vector3 TransformPoint(const Math::Vector3& point) const;
```
## Parameters
- `point` - The local space point to transform.
## Returns
Returns the transformed point in world space.
## Remarks
Transforms a point from local space to world space using the transform's local-to-world matrix.
## See Also
- [InverseTransformPoint](inverse-transform-point)
- [TransformDirection](transform-direction)
## Examples
```cpp
void Example(TransformComponent* transform) {
Math::Vector3 localPoint(1.0f, 0.0f, 0.0f);
Math::Vector3 worldPoint = transform->TransformPoint(localPoint);
}
```