version 1.1, 2011/12/02 15:09:46
|
version 1.2, 2016/08/20 17:48:11
|
Line 4 Used to create rules that aren't options
|
Line 4 Used to create rules that aren't options
|
|
|
Available evaluation functions: |
Available evaluation functions: |
\begin{enumerate} |
\begin{enumerate} |
\item \&fpr\_val(``label") |
\item \&fpr\_val(``label'') |
\item \&fpr\_f(\$x) |
\item \&fpr\_f(\$x) |
\item \&fpr\_dfdx(\$x) |
\item \&fpr\_dfdx(\$x) |
\item\&fpr\_d2fdx2(\$x) |
\item\&fpr\_d2fdx2(\$x) |
\item (\$xs,\$xe,\$ys,\$ye)=\&fpr\_vectorcoords(``Name") |
\item (\$xs,\$xe,\$ys,\$ye)=\&fpr\_vectorcoords(``Name'') |
\item (\$x,\$y)=\&fpr\_objectcoords(``Name") |
\item (\$x,\$y)=\&fpr\_objectcoords(``Name'') |
\item \&fpr\_vectorlength(``Name") |
\item \&fpr\_vectorlength(``Name'') |
\item \&fpr\_vectorangle(``Name") |
\item \&fpr\_vectorangle(``Name'') |
\end{enumerate} |
\end{enumerate} |
|
|
Returning 1 is correct, while returning 0 is incorrect. |
Returning 1 is correct, while returning 0 is incorrect. |
|
|
Example comparing the lengths of two vectors: |
Example comparing the lengths of two vectors: |
\begin{verbatim} |
\begin{verbatim} |
if (&fpr_vectorlength(``Normal") < &fpr_vectorlength(``Gravity")) |
if (&fpr_vectorlength("Normal") < &fpr_vectorlength("Gravity")) |
{return 1;} |
{return 1;} |
else |
else |
{return 0;} |
{return 0;} |