1 package LaTeX::TikZ::Point::Math::Complex;
8 LaTeX::TikZ::Point::Math::Complex - Coerce Math::Complex points into LaTeX::TikZ::Point objects.
16 our $VERSION = '0.01';
20 use LaTeX::TikZ::Point;
22 use Any::Moose 'Util::TypeConstraints' => [ qw/
29 my $mc_tc = class_type 'Math::Complex';
31 coerce 'LaTeX::TikZ::Point::Autocoerce'
32 => from 'Math::Complex'
33 => via { LaTeX::TikZ::Point->new(x => $_->Re, y => $_->Im); };
37 Vincent Pit, C<< <perl at profvince.com> >>, L<http://www.profvince.com>.
39 You can contact me by mail or on C<irc.perl.org> (vincent).
43 Please report any bugs or feature requests to C<bug-latex-tikz at rt.cpan.org>, or through the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=LaTeX-TikZ>.
44 I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
48 You can find documentation for this module with the perldoc command.
52 =head1 COPYRIGHT & LICENSE
54 Copyright 2010 Vincent Pit, all rights reserved.
56 This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
60 1; # End of LaTeX::TikZ::Point::Math::Complex