length property
double
length
The length of a line segment from (0,0) to this point.
Implementation
double get length {
return math.sqrt(x * x + y * y);
}
The length of a line segment from (0,0) to this point.
double get length {
return math.sqrt(x * x + y * y);
}