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

# graph::worldToLocal

Returns the transformation matrix from world space to local space.

```
float4x4 graph::worldToLocal()
```

## Return Value

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

## Discussion

This matrix transforms coordinates from the scene’s coordinate system
to the graph’s local coordinate system. It is the inverse of the local-to-world matrix.

> Visual: ![Graph](graph__worldToLocal)

---

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)