syclreference.com
  1. SYCL
  2. | API Reference
  3. | Built-Ins
  4. | normalize

normalize

Returns a vector in the same direction as p but with a length of 1.


template <typename F, typename return_t, detail::enable_if_t<(detail::builtin::is_gen_geo_anyfloat<F>::value), int> >
return_t normalize(F p)
(1)
  1. Returns a vector in the same direction as p but with a length of 1.
    Parameters:
    • F p

syclreference.com — SYCL Reference Pages

Last updated: 2019-01-24 00:24:52 +0000