length property

double length
inherited

Length.

Implementation

double get length => math.sqrt(length2);
  1. @override
void 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();
}