# Function: mirrorX()

[**lifecycle-kit**](https://jonbogaty.com/lifecycle-kit/api/readme/index.md)

***

[lifecycle-kit](https://jonbogaty.com/lifecycle-kit/api/readme/index.md) / [forms](https://jonbogaty.com/lifecycle-kit/api/forms/readme/index.md) / mirrorX


# Function: mirrorX() {#function-mirrorx}


> **mirrorX**(`path`): [`Path`](https://jonbogaty.com/lifecycle-kit/api/forms/interfaces/path/index.md)

Defined in: [forms/rules/transform.ts:112](https://github.com/jbcom/lifecycle-kit/blob/074e4e7b8038d3e2de9eb44c4b5b5aee0ef02b48/src/forms/rules/transform.ts#L112)

Mirror across the y axis (x -> -x) — reflects front-to-back.

With the body's long axis along +x (see `path.ts`), this swaps head end for
tail end. It is NOT how a left/right pair is made; `mirrorY` is. The naming
follows the axis being negated, which is the convention that survives contact
with `scale(path, -1, 1)` sitting right there.


## Parameters {#parameters}



### path {#path}


[`Path`](https://jonbogaty.com/lifecycle-kit/api/forms/interfaces/path/index.md)


## Returns {#returns}


[`Path`](https://jonbogaty.com/lifecycle-kit/api/forms/interfaces/path/index.md)
