relativeError method
Relative error between this and correct
Implementation
double relativeError(Vector3 correct) {
final correct_norm = correct.length;
final diff_norm = (this - correct).length;
return diff_norm / correct_norm;
}
Relative error between this and correct
double relativeError(Vector3 correct) {
final correct_norm = correct.length;
final diff_norm = (this - correct).length;
return diff_norm / correct_norm;
}