Subversion Repositories gelsvn

Rev

Rev 11 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 11 Rev 115
Line 165... Line 165...
165
they would have been initialized to ``Not a Number'' to aid
165
they would have been initialized to ``Not a Number'' to aid
166
debugging. However, the $[10 10 10]^T$ vector could also have been
166
debugging. However, the $[10 10 10]^T$ vector could also have been
167
created differently, using
167
created differently, using
168
\begin{lstlisting}{}
168
\begin{lstlisting}{}
169
  Vec3f p0(10);
169
  Vec3f p0(10);
170
\end{}
170
\end{lstlisting}
171
 
171
 
172
A very common operation is to compute the normal of a triangle from
172
A very common operation is to compute the normal of a triangle from
173
the position of its vertices. Assuming the three vectors represent the
173
the position of its vertices. Assuming the three vectors represent the
174
vertices of a triangle, we can compute the normal by finding the
174
vertices of a triangle, we can compute the normal by finding the
175
vector from the first vertex to the two other vertices, taking the
175
vector from the first vertex to the two other vertices, taking the