length()
    {
        const x = this.x;
        const y = this.y;

        return Math.sqrt((x * x) + (y * y));
    }
/**
     * Calculates the length of the vector.
     *
     * @return {number} length of the vector.
     */
Calculates the length of the vector.
@return {number} length of the vector.
Calculates the length of the vector . @return { number } length of the vector .
length()
    {
        const x = this.x;
        const y = this.y;
        return Math.sqrt((x * x) + (y * y));
    }
length ( ) { const x = this . x ; const y = this . y ; return Math . sqrt ( ( x * x ) + ( y * y ) ) ; }
Calculates the length of the vector.
Calculates the length of the vector .