lengthSquared property

int get lengthSquared

Length of the vector squared; useful for length comparisons

Implementation

int get lengthSquared => (x * x) + (y * y);