warp.normalize#

warp.normalize(a: Vector[Float, Any]) Vector[Float, Any]#
  • Kernel

  • Differentiable

Compute the normalized value of a.

If length(a) is 0, the zero vector is returned.

warp.normalize(a: Quaternion[Float]) Quaternion[Float]
  • Kernel

  • Differentiable

Compute the normalized value of a.

If length(a) is 0, the zero quaternion is returned.