warp.volume_world_to_index_dir#
- warp.volume_world_to_index_dir( ) vec3f#
Kernel
Python
Differentiable
Transform the direction
xyzfrom world space to the volume’s index space using the linear part of the volume’s affine transform.For positions, use
volume_world_to_index()instead.- Parameters:
id – The
idof awarp.Volume.xyz – Direction in world space.
- Returns:
The transformed direction in index space with
float32precision. Translation is not applied, and the vector is not renormalized.
See
volume_index_to_world()for a usage example.
- warp.volume_world_to_index_dir( ) vec3d
Kernel
Python
Differentiable
Transform the direction
xyzfrom world space to the volume’s index space using the linear part of the volume’s affine transform (float64 precision).The
float64overload ofvolume_world_to_index_dir(). Behavior and usage match the defaultfloat32overload; see it for details and a usage example.