Builtin Library
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 againstvector.
local side = g.geometry.perpendicular({ vector = vector.create(0, 1, 0) })