<!--
{
  "availability" : [
    "Reality Composer Pro: -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "ComputeGraph",
  "identifier" : "/documentation/ComputeGraph/graph/localToWorld",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Compute Graph"
    ],
    "preciseIdentifier" : "graph::localToWorld"
  },
  "title" : "graph::localToWorld"
}
-->

# graph::localToWorld

Returns the transformation matrix from local space to world space.

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

## Return Value

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

## Discussion

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

> Visual: ![Graph](graph__localToWorld)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)