magnitude method
Returns the magnitude, length or Euclidean norm of the vector.
Vector v = Vector([1.0, 1.0, 1.0]);
print(v.magnitude());
will print 1.7320508
Implementation
@deprecated
double magnitude() {
return norm();
}
Returns the magnitude, length or Euclidean norm of the vector.
Vector v = Vector([1.0, 1.0, 1.0]);
print(v.magnitude());
will print 1.7320508
@deprecated
double magnitude() {
return norm();
}