6. dev2ray
Point and direction of the light ray at a given pixel
[h,b] = dev2ray(dev)
[h,b] = dev2ray(dev,idx)
[h,b] = dev2ray(dev,idx,unit)
Inputs / outputs
- dev = 2xNxK Points on the device surface at K poses.
- idx = Index of the pose to be used (dev must be 2xN).
- unit = true|false; Specify if the direction vectors are normalized.
- h = 2xNxK Reference point of the light rays.
- b = 2xNxK Direction vectors of the light rays.