Reference×
Reference
- [] (array access)
- = (assign)
- catch
- class
- , (comma)
- // (comment)
- {} (curly braces)
- /** */ (doc comment)
- . (dot)
- draw()
- exit()
- extends
- false
- final
- implements
- import
- loop()
- /* */ (multiline comment)
- new
- noLoop()
- null
- () (parentheses)
- popStyle()
- pop()
- private
- public
- pushStyle()
- push()
- redraw()
- return
- ; (semicolon)
- setLocation()
- setResizable()
- setTitle()
- setup()
- static
- super
- this
- thread()
- true
- try
- void
Name
heading()
Class
PVector
Description
Calculate the angle of rotation for this vector (only 2D vectors)
Examples
PVector v; void setup() { v = new PVector(10.0, 20.0); println(v.heading()); // Prints "1.1071488" }
Syntax
.heading()
Return
float

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.