leap-motion-processing icon indicating copy to clipboard operation
leap-motion-processing copied to clipboard

`Hand.getDirection()` has confusing return value

Open alexdmiller opened this issue 7 years ago • 0 comments

getRawDirection returns a PVector which is a vector pointing in the direction of the fingers from the palm. But getDirection returns a PVector that contains the pitch, roll and yaw in the PVector's x, y and z coordinates. I think this is a confusing interface. I think that getRawDirection should be renamed getDirection and getDirection should be called something like getEulerOrientation.

alexdmiller avatar Jan 24 '18 01:01 alexdmiller