Files
processing4/java/examples/OpenGL/Animation/Yellowtail/Vec3f.pde
2012-07-20 20:24:58 +00:00

20 lines
249 B
Plaintext
Executable File

class Vec3f {
float x;
float y;
float p; // Pressure
Vec3f() {
set(0, 0, 0);
}
Vec3f(float ix, float iy, float ip) {
set(ix, iy, ip);
}
void set(float ix, float iy, float ip) {
x = ix;
y = iy;
p = ip;
}
}