📜  在 p5 中查找 objext 的标题 - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:24.353000             🧑  作者: Mango

代码示例1
function setup() {
  let v1 = createVector(30, 50);
  print(v1.heading()); // 1.0303768265243125

  v1 = createVector(40, 50);
  print(v1.heading()); // 0.8960553845713439

  v1 = createVector(30, 70);
  print(v1.heading()); // 1.1659045405098132
}