---
title: "graph::worldToLocal"
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/worldtolocal
---

# graph::worldToLocal

Returns the transformation matrix from world space to local space.

## Declaration

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

## Return Value

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

## Discussion

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. note:
