% a simple module to do 2 dimensional vector calculations (using fp)
% Copyright (C) Rik Snel <rsnel@cube.dyndns.org> 2007, license GPLv2 or later
%
% prefix VDD (vector 2d)
%
% some improvements to conditionals in fp.tex to make them nestable
% trick due to Donald Arsenau
%
\def\FPfixconditional#1#2#3{%
  \expandafter\def\csname ifFP#1\endcsname#2\then{%
    \csname FPif#1\endcsname#3%
  }%
}%
\def\FPfixuconditional#1{\FPfixconditional{#1}{##1}{{##1}}}%
\def\FPfixbconditional#1{\FPfixconditional{#1}{##1##2}{{##1}{##2}}}%
\FPfixuconditional{neg}%
\FPfixuconditional{pos}%
\FPfixuconditional{zero}%
\FPfixuconditional{int}%
\FPfixbconditional{lt}%
\FPfixbconditional{gt}%
\FPfixbconditional{eq}%
