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

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