Instance Method

# 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.

## Parameters

`normal`

A vector perpendicular to a surface at a point, specified relative to `referenceEntity`.

`referenceEntity`

The entity that defines a frame of reference. Set this to `nil` to indicate world space.

## Return Value

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

### Converting Values Between Coordinate Spaces

`func convert(position: SIMD3<Float>, from: Entity?) -> SIMD3<Float>`

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

`func convert(position: SIMD3<Float>, to: Entity?) -> SIMD3<Float>`

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

`func convert(direction: SIMD3<Float>, from: Entity?) -> SIMD3<Float>`

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

`func convert(direction: SIMD3<Float>, to: Entity?) -> SIMD3<Float>`

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

`func convert(normal: SIMD3<Float>, to: Entity?) -> SIMD3<Float>`

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

`func convert(transform: Transform, from: Entity?) -> Transform`

Converts the scale, rotation, and position of a transform from the local space of a reference entity to the local space of the entity on which you called this method.

`func convert(transform: Transform, to: Entity?) -> Transform`

Converts the scale, rotation, and position of a transform from the local space of the entity on which you called this method to the local space of a reference entity.