Print view · Vec2 Normalize · 1 pageChoose "Save as PDF" as the destination in the print dialog.
Back to the docs

Mesh Morpher documentation

Vec2 Normalize

1 page · exported 2026-09-06 · https://meshmorpher.com/docs/studio-and-graph/voxel/math/vec2-normalize

Studio and Graph › Voxel › Math

Vec2 Normalize

Unit-length version of a 2D vector. A zero-length input safely returns (0, 0) rather than an error.

Vec2 Normalize node

The Vec2 Normalize node

When to use it

Unit-length version of a 2D vector. A zero-length input safely returns (0, 0) rather than an error.

That guard is why a direction built from a difference can come out as zero instead of blowing up. When a direction-driven pattern goes blank at one spot, this is usually where it happened.

Pins

Pin Type Description
X Number X component of the input vector.
Y Number Y component of the input vector.
Pin Type Description
NX Number Normalised X component.
NY Number Normalised Y component.