almostEquals method
Check if a vector equals is almost equal to another one.
Implementation
bool almostEquals(Vec3 vector,[double? precision]) {
precision ??= 1e-6;
if (
(x - vector.x).abs() > precision ||
(y - vector.y).abs() > precision ||
(z - vector.z).abs() > precision
) {
return false;
}
return true;
}