⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tuple.pde

📁 This is processing for java examples.
💻 PDE
字号:
// Simple vector class that holds an x,y,z position.class Tuple {  float x, y, z;  Tuple() { }  Tuple(float x, float y, float z) {    set(x, y, z);  }  void set(float x, float y, float z) {    this.x = x;    this.y = y;    this.z = z;  }    void target(Tuple another, float amount) {    float amount1 = 1.0 - amount;    x = x*amount1 + another.x*amount;    y = y*amount1 + another.y*amount;    z = z*amount1 + another.z*amount;  }    void phil() {    fill(x, y, z);  }    void tran() {    translate(x, y, z);  }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -