We are given that the two vectors are of the same magnitude. Let the magnitude of each vector be \( A \), and the angle between the two vectors be \( \theta \).
According to the problem, twice the product of the magnitudes of the two vectors is equal to the square of the magnitude of their resultant.
\[
2A^2 = R^2
\]
The magnitude of the resultant \( R \) can be calculated using the formula:
\[
R = \sqrt{A^2 + A^2 + 2A^2 \cos \theta} = \sqrt{2A^2(1 + \cos \theta)}
\]
We are told that:
\[
2A^2 = R^2
\]
Substituting the expression for \( R^2 \), we get:
\[
2A^2 = 2A^2(1 + \cos \theta)
\]
Simplifying:
\[
1 = 1 + \cos \theta
\]
\[
\cos \theta = 0
\]
\[
\theta = 90^\circ
\]
Thus, the angle between the two vectors is \( 90^\circ \).