Apply autofixes

This commit is contained in:
zontreck 2024-05-06 13:45:52 -07:00
parent 5357da3746
commit dd6ee1bf60
15 changed files with 36 additions and 30 deletions

View file

@ -8,7 +8,7 @@ class Vector2d {
@override
bool operator ==(Object otherz) {
if (otherz is Vector2d) {
Vector2d other = otherz as Vector2d;
Vector2d other = otherz;
return X == other.X && Z == other.Z;
}
return false;
@ -60,7 +60,7 @@ class Vector2d {
@override
String toString() {
return "<${X}, ${Z}>";
return "<$X, $Z>";
}
bool inside(Vector2d min, Vector2d max) {
@ -84,7 +84,7 @@ class Vector2i {
@override
bool operator ==(Object otherz) {
if (otherz is Vector2i) {
Vector2i other = otherz as Vector2i;
Vector2i other = otherz;
return X == other.X && Z == other.Z;
}
return false;
@ -136,7 +136,7 @@ class Vector2i {
@override
String toString() {
return "<${X}, ${Z}>";
return "<$X, $Z>";
}
bool inside(Vector2i min, Vector2i max) {

View file

@ -9,7 +9,7 @@ class Vector3d {
@override
bool operator ==(Object otherz) {
if (otherz is Vector3d) {
Vector3d other = otherz as Vector3d;
Vector3d other = otherz;
return X == other.X && Y == other.Y && Z == other.Z;
}
return false;
@ -65,7 +65,7 @@ class Vector3d {
@override
String toString() {
return "<${X}, ${Y}, ${Z}>";
return "<$X, $Y, $Z>";
}
bool inside(Vector3d min, Vector3d max) {
@ -92,7 +92,7 @@ class Vector3i {
@override
bool operator ==(Object otherz) {
if (otherz is Vector3i) {
Vector3i other = otherz as Vector3i;
Vector3i other = otherz;
return X == other.X && Y == other.Y && Z == other.Z;
}
return false;
@ -148,7 +148,7 @@ class Vector3i {
@override
String toString() {
return "<${X}, ${Y}, ${Z}>";
return "<$X, $Y, $Z>";
}
bool inside(Vector3i min, Vector3i max) {