Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commite8beb5604c

README.md

geometry.perpendicular

A unit vector perpendicular to a unit vector, per element, found against the world axis the vector leans on least so the result stays well conditioned.

Inputs

  • vector (Vec3). The unit vector the answer is square to: one value, or one per element of a column.

Outputs

  • perpendicular (Vec3). A unit vector with a zero dot product against vector.
local side = g.geometry.perpendicular({ vector = vector.create(0, 1, 0) })