Take $f,g \in V$, where $V$ is an inner product space. Let $\langle \cdot, \cdot \rangle : V \times V \to [0,\infty)$ denote the inner product operator in $V$. Let the "angle" $\theta$ between $f$ and $g$ be defined through the rule
$$ \cos(\theta) = \frac{\langle f, g\rangle}{{\left\|f\right\| \left\|g\right\|}} $$
where norms on $V$ are defined in terms of the inner product as $\left\|\cdot\right\| \doteq \langle \cdot, \cdot \rangle $.
My question is simple: if $\cos(\theta) = 1$, what conclusions can be made? In particular, I would like to know if I can conclude that $f = g$ almost everywhere, and if not, I would like to know what extra assumptions are needed to get that result. In particular, I am interested to find out if $f = g \text{ }\mathrm{a.e.}$ when $\cos(\theta) = 1$ for the restricted case when $V$ is the space of bounded, real valued functions whose domain is a closed interval in the real line.
Thank you very much for your help!