---
title: "graph::localToWorld"
framework: Compute Graph
role: symbol
role_heading: Function
platforms: [iOS 27.0+, iPadOS 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: computegraph/graph/localtoworld
---

# graph::localToWorld

Returns the transformation matrix from local space to world space.

## Declaration

```swift
float4x4 graph::localToWorld()
```

## Return Value

Return Value A 4x4 transformation matrix for local-to-world conversion.

## Discussion

Discussion This matrix transforms coordinates from the graph’s local coordinate system to the scene’s coordinate system, incorporating all parent transformations. note:
