length property

double get length
inherited

Length.

Implementation

double get length => math.sqrt(length2);
  1. @override
set length (double l)
override

Set the length of the vector. A negative value will change the vectors orientation and a value of zero will set the vector to zero.

Implementation

@override
set length(double l) {
  super.length = l;
  notifyListeners();
}