---
title: "convert(normal:from:)"
framework: realitykit
role: symbol
role_heading: Instance Method
path: "realitykit/hastransform/convert(normal:from:)"
---

# convert(normal:from:)

Converts a normal vector from the local space of a reference entity to the local space of the entity on which you called this method.

## Declaration

```swift
@MainActor @preconcurrency func convert(normal: SIMD3<Float>, from referenceEntity: Entity?) -> SIMD3<Float>
```

## Parameters

- `normal`: A vector perpendicular to a surface at a point, specified relative to specified relative to referenceEntity.
- `referenceEntity`: The entity that defines a frame of reference. Set this to nil to indicate world space.

## Return Value

Return Value The normal vector given in the local space of the entity.

## See Also

### Converting values between coordinate spaces

- [convert(position:from:)](realitykit/hastransform/convert(position:from:).md)
- [convert(position:to:)](realitykit/hastransform/convert(position:to:).md)
- [convert(direction:from:)](realitykit/hastransform/convert(direction:from:).md)
- [convert(direction:to:)](realitykit/hastransform/convert(direction:to:).md)
- [convert(normal:to:)](realitykit/hastransform/convert(normal:to:).md)
- [convert(transform:from:)](realitykit/hastransform/convert(transform:from:).md)
- [convert(transform:to:)](realitykit/hastransform/convert(transform:to:).md)
