flow/src/win32/xy.zig
2025-01-13 05:06:57 -07:00

14 lines
336 B
Zig

pub fn XY(comptime T: type) type {
return struct {
x: T,
y: T,
pub fn init(x: T, y: T) @This() {
return .{ .x = x, .y = y };
}
const Self = @This();
pub fn eql(self: Self, other: Self) bool {
return self.x == other.x and self.y == other.y;
}
};
}