× Direction r←×y
r is the result of the scalar application of the direction function:
- if
yis0,×yis0 - otherwise,
×yisy÷|y()
Note that this operation can be described as the point on the unit circle with the same direction as y and is the signum function for real inputs.