cgal/Old_Packages/Doc23/doc_tex/kernel/Ref/operator-.tex

33 lines
1.2 KiB
TeX

\begin{ccRefFunction}{operator-}
\ccTexHtml{\ccSetThreeColumns{Vector_2<R>X }{}{\hspace*{8.0cm}}}{}
\ccFunction{Vector_2<R> operator-(const Point_2<R> &p,
const Point_2<R> &q);}
{returns the difference vector between \ccStyle{q} and \ccStyle{p}.
You can substitute \ccc{ORIGIN} for either \ccc{p} or \ccc{q}
,but not for both.}
\ccFunction{Point_2<R> operator-(const Point_2<R> &p,
const Vector_2<R> &v);}
{returns the point obtained by translating \ccStyle{p} by the
vector -\ccStyle{v}.}
\ccFunction{Vector_3<R> operator-(const Point_3<R> &p,
const Point_3<R> &q);}
{returns the difference vector between \ccStyle{q} and \ccStyle{p}.
You can substitute \ccc{ORIGIN} for either $p$
or $q$, but not both.}
\ccFunction{Point_3<R> operator-(const Point_3<R> &p,
const Vector_3<R> &v);}
{returns a point obtained by translating \ccStyle{p} by the
vector $-$\ccStyle{v}.}
\ccSeeAlso
\ccRefIdfierPage{CGAL::operator+} \\
\ccRefIdfierPage{CGAL::operator*} \\
\end{ccRefFunction}