mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-04-19 23:00:19 +00:00
add BinaryColumn#xor
This commit is contained in:
@@ -88,6 +88,10 @@ public class BinaryColumn {
|
|||||||
return bool(that, Boolean::logicalOr);
|
return bool(that, Boolean::logicalOr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public BinaryColumn xor(BinaryColumn that) {
|
||||||
|
return bool(that, Boolean::logicalXor);
|
||||||
|
}
|
||||||
|
|
||||||
private BinaryColumn bool(BinaryColumn that, BinaryOperator<Boolean> operator) {
|
private BinaryColumn bool(BinaryColumn that, BinaryOperator<Boolean> operator) {
|
||||||
int smallMinY = Math.min(this.minY, that.minY);
|
int smallMinY = Math.min(this.minY, that.minY);
|
||||||
int bigMaxY = Math.max(this.maxY, that.maxY);
|
int bigMaxY = Math.max(this.maxY, that.maxY);
|
||||||
|
|||||||
Reference in New Issue
Block a user