warp.quaternion#
- warp.quaternion(dtype: Float) Quaternion[Float]#
Kernel
Differentiable
Construct a quaternion.
Zero-initialize the quaternion. Quaternions are laid out as
[ix, iy, iz, r], whereix,iy,izare the imaginary part, andrthe real part.
- warp.quaternion(
- x: Float,
- y: Float,
- z: Float,
- w: Float,
- dtype: Scalar,
Kernel
Differentiable
Construct a quaternion.
Use the supplied components (type inferred from component type).
- warp.quaternion(
- ijk: Vector[Literal[3], Float],
- real: Float,
- dtype: Float,
Kernel
Differentiable
Construct a quaternion.
Use the supplied vector/scalar (type inferred from scalar type).
- warp.quaternion(
- quat: Quaternion[Float],
- dtype: Float,
Kernel
Differentiable
Construct a quaternion.
Convert
quatto the specifieddtype.