[latex3-commits] [git/LaTeX3-latex3-latex3] master: l3draw: Vector point functions will be subdivided (e29ca9c)
Joseph Wright
joseph.wright at morningstar2.co.uk
Thu Feb 8 09:57:14 CET 2018
Repository : https://github.com/latex3/latex3
On branch : master
Link : https://github.com/latex3/latex3/commit/e29ca9c21efbeb7c8ab570022fda1f55a7fd7111
>---------------------------------------------------------------
commit e29ca9c21efbeb7c8ab570022fda1f55a7fd7111
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Thu Feb 8 08:57:14 2018 +0000
l3draw: Vector point functions will be subdivided
>---------------------------------------------------------------
e29ca9c21efbeb7c8ab570022fda1f55a7fd7111
l3trial/l3draw/l3draw-points.dtx | 24 ++++++++++++------------
l3trial/l3draw/l3draw.dtx | 6 +++---
2 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/l3trial/l3draw/l3draw-points.dtx b/l3trial/l3draw/l3draw-points.dtx
index e2fc458..abdd20c 100644
--- a/l3trial/l3draw/l3draw-points.dtx
+++ b/l3trial/l3draw/l3draw-points.dtx
@@ -351,16 +351,16 @@
\draw_set_zvec:n { \draw_point_coord:nn { -0.385cm } { -0.385cm } }
% \end{macrocode}
%
-% \begin{macro}[EXP]{\draw_point_vec:nn}
-% \begin{macro}[EXP]{\@@_point_vec:nn, \@@_point_vec:ff}
-% \begin{macro}[EXP]{\draw_point_vec:nnn}
-% \begin{macro}[EXP]{\@@_point_vec:nnn, \@@_point_vec:fff}
+% \begin{macro}[EXP]{\draw_point_vec_coord:nn}
+% \begin{macro}[EXP]{\@@_point_vec_coord:nn, \@@_point_vec_coord:ff}
+% \begin{macro}[EXP]{\draw_point_vec_coord:nnn}
+% \begin{macro}[EXP]{\@@_point_vec_coord:nnn, \@@_point_vec_coord:fff}
% Force a single evaluation of each factor, then use these to work out the
% underlying point.
% \begin{macrocode}
-\cs_new:Npn \draw_point_vec:nn #1#2
- { \@@_point_vec:ff { \fp_eval:n {#1} } { \fp_eval:n {#2} } }
-\cs_new:Npn \@@_point_vec:nn #1#2
+\cs_new:Npn \draw_point_vec_coord:nn #1#2
+ { \@@_point_vec_coord:ff { \fp_eval:n {#1} } { \fp_eval:n {#2} } }
+\cs_new:Npn \@@_point_vec_coord:nn #1#2
{
{
\fp_to_dim:n
@@ -371,13 +371,13 @@
{ #1 * \l_@@_xvec_y_dim + #2 * \l_@@_yvec_y_dim }
}
}
-\cs_generate_variant:Nn \@@_point_vec:nn { ff }
-\cs_new:Npn \draw_point_vec:nnn #1#2#3
+\cs_generate_variant:Nn \@@_point_vec_coord:nn { ff }
+\cs_new:Npn \draw_point_vec_coord:nnn #1#2#3
{
- \@@_point_vec:fff
+ \@@_point_vec_coord:fff
{ \fp_eval:n {#1} } { \fp_eval:n {#2} } { \fp_eval:n {#3} }
}
-\cs_new:Npn \@@_point_vec:nnn #1#2#3
+\cs_new:Npn \@@_point_vec_coord:nnn #1#2#3
{
{
\fp_to_dim:n
@@ -396,7 +396,7 @@
}
}
}
-\cs_generate_variant:Nn \@@_point_vec:nnn { fff }
+\cs_generate_variant:Nn \@@_point_vec_coord:nnn { fff }
% \end{macrocode}
% \end{macro}
% \end{macro}
diff --git a/l3trial/l3draw/l3draw.dtx b/l3trial/l3draw/l3draw.dtx
index da72b5f..819660f 100644
--- a/l3trial/l3draw/l3draw.dtx
+++ b/l3trial/l3draw/l3draw.dtx
@@ -103,10 +103,10 @@
% \end{syntax}
% \end{function}
%
-% \begin{function}[EXP]{\draw_point_vec:nn, \draw_point_vec:nnn}
+% \begin{function}[EXP]{\draw_point_vec_coord:nn, \draw_point_vec_coord:nnn}
% \begin{syntax}
-% \cs{draw_point_vec:nn} \marg{xscale} \marg{yscale}
-% \cs{draw_point_vec:nnn} \marg{xscale} \marg{yscale} \mag{zscale}
+% \cs{draw_point_vec_coord:nn} \marg{xscale} \marg{yscale}
+% \cs{draw_point_vec_coord:nnn} \marg{xscale} \marg{yscale} \mag{zscale}
% \end{syntax}
% \end{function}
%
More information about the latex3-commits
mailing list