def squared_distance(self, point: Tensor) -> Tensor:
        """Return the squared distance of a point to its projection onte the line.

        Args:
            point: the point to calculate the distance onto the line.

        """
        diff: Tensor = point - self.origin
        return squared_norm(diff - (self.direction @ diff) * self.direction)
Return the squared distance of a point to its projection onte the line.

        Args:
            point: the point to calculate the distance onto the line.

        
kornia/geometry/line.py