logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

normalize - Normal vector length 1.

Authors

TheKhronosGroup

Description

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

Name

       normalize - Normal vector length 1.

       floatnnormalize(floatnp);doublennormalize(doublenp);gentypenormalize (gentypep)      // if half extension
       enabled

Notes

        1. OpenCL Specification
           page 262, section 6.12.5 - Geometric Functions

The Khronos Group                                  11/18/2024                                    NORMALIZE(3clc)

See Also

fast_normalize(3clc) geometricFunctions(3clc)

Specification

OpenCLSpecification[1]

See Also