Skip to main content
  • Reference
  • Tutorials
  • Examples
  • Contribute
  • Community
  • About
  • Start Coding
  • Donate
Reference x

x

The x component of the vector

This page is generated from the comments in src/math/p5.Vector.js . Please feel free to edit it and submit a pull request!

Related References

  • createVector

    Creates a new p5.Vector object.

  • p5.Vector

    A class to describe a two or three-dimensional vector.

  • add

    Adds to a vector's x, y, and z components.

  • angleBetween

    Calculates the angle between two vectors.

p5.js
Resources
  • Reference
  • Tutorials
  • Examples
  • Contribute
  • Community
  • About
  • Start Coding
  • Donate
Information
  • Download
  • Contact
  • Copyright
  • Privacy Policy
  • Terms of Use
Socials
  • GitHub ↗
  • Instagram ↗
  • X ↗
  • YouTube ↗
  • Discord ↗
  • Forum ↗

Looking for the new version? Find p5.js 2.0 here!