Home
API: forms

Function: mirrorX()

lifecycle-kit

lifecycle-kit


lifecycle-kit / forms / mirrorX

Function: mirrorX()

mirrorX(path): Path

Defined in: forms/rules/transform.ts:112

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

path

Path

Returns

Path