The converse of the Pythagorean theorem is also a true statement: If the sum of the squares of the lengths of two sides of a triangle is equal to the square of the length of the third side, then the triangle is a right triangle. Use the distance formula and the Pythagorean theorem to determine whether the set of points could be vertices of a right triangle.
$$(-3,1),(2,-1), \text { and }(6,9)$$