This example demonstrates a ball bouncing on a slanted surface, implemented using vector calculations for reflection.
The code makes extensive use of the p5.Vector class, including the createVector() function to create new vectors, and the vector methods add() and dot() for the vector calculations.
Non-Orthogonal Reflection by p5.js Contributors and the Processing Foundation is licensed under CC BY-NC-SA 4.0.