Scales the components of a p5.Vector object so that its magnitude is 1.
The static version of normalize(), as in p5.Vector.normalize(v), returns a new p5.Vector object and doesn't change the original.
예제
구문
normalize()
매개변수
반환값
p5.Vector: normalized p5.Vector.
Notice any errors or typos? Please let us know. Please feel free to edit src/math/p5.Vector.js and open a pull request!
관련 레퍼런스
textToContours
Returns an array of arrays of points outlining a string of text written using the font.
textToModel
Converts text into a 3D model that can be rendered in WebGL mode.
textToPaths
Returns a flat array of path commands that describe the outlines of a string of text.
textToPoints
Returns an array of points outlining a string of text written using the font.