Function: orthonormalFrame()
orthonormalFrame(
normal):object
Defined in: utils/vectors.ts:156
Build a right-handed orthonormal frame {u, v, n} around the given
normal. n is normalised; u = unitPerpendicularTo(n); v = n × u.
Use this instead of writing axis-equal-to-Z special cases in caller code.
Parameters
normal
Returns
object
n
n:
Vector3Tuple
u
u:
Vector3Tuple
v
v:
Vector3Tuple