warp.quaternion#
- warp.quaternion(dtype: Float) Quaternion[Float]#
Kernel
Differentiable
- Construct a zero-initialized quaternion. Quaternions are laid out as
[ix, iy, iz, r], where ix, iy, iz are the imaginary part, and r the real part.
- warp.quaternion(
- x: Float,
- y: Float,
- z: Float,
- w: Float,
- dtype: Scalar,
Kernel
Differentiable
Create a quaternion using the supplied components (type inferred from component type).
- warp.quaternion(
- ijk: Vector[3, Float],
- real: Float,
- dtype: Float,
Kernel
Differentiable
Create a quaternion using the supplied vector/scalar (type inferred from scalar type).
- warp.quaternion(
- quat: Quaternion[Float],
- dtype: Float,
Kernel
Differentiable
Construct a quaternion of type dtype from another quaternion of a different dtype.