} map($tikz->$_, qw<unit format scale width height>), $origin;
}
-=head2 C<render @sets>
+=head2 C<render>
+
+ my ($header_lines, $mod_lines, $content_lines) = $formatter->render(@sets);
Processes all the L<LaTeX::TikZ::Set> objects given in C<@sets> to produce the actual TikZ code to insert in the LaTeX file.
First, all the mods applied to the sets and their subsets are collected, and a declaration is emitted if needed for each of them by calling L<LaTeX::TikZ::Mod/declare>.
return \@header, \@decls, @bodies;
}
-=head2 C<len $len>
+=head2 C<len>
+
+ my $physical_len = $formatter->len($logical_len);
Format the given length according to the formatter options.
sprintf $tikz->format . $tikz->unit, $len * $tikz->scale;
}
-=head2 C<angle $theta>
+=head2 C<angle>
+
+ my $physical_angle = $formatter->angle($logical_angle);
Format the given angle (in radians) according to the formatter options.
sprintf $tikz->format, POSIX::ceil($a);
}
-=head2 C<label $name, $pos>
+=head2 C<label>
+
+ my $label = $formatter->label($name, $pos);
Returns the TikZ code for a point labeled C<$name> at position C<$pos> according to the formatter options.
=head1 COPYRIGHT & LICENSE
-Copyright 2010 Vincent Pit, all rights reserved.
+Copyright 2010,2011,2012,2013,2014,2015 Vincent Pit, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.