mirror of
https://github.com/processing/processing4.git
synced 2026-01-29 19:31:16 +01:00
20 lines
249 B
Plaintext
Executable File
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;
|
|
}
|
|
}
|