Checks whether all the vector's components are equal to another vector's.
equals()
returns true
if the vector's components are all the same as another vector's and false
if not.
The version of equals()
with one parameter interprets it as another p5.Vector object.
The version of equals()
with multiple parameters interprets them as the components of another vector. Any missing parameters are assigned the value 0.
The static version of equals()
, as in p5.Vector.equals(v0, v1)
, interprets both parameters as p5.Vector objects.
Examples
Syntax
equals([x], [y], [z])
equals(value)
equals()
equals(v1, v2)
Parameters
Returns
Related References
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.