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.02';
20 use LaTeX::TikZ::Point;
22 use Mouse::Util::TypeConstraints qw<class_type coerce from via>;
24 my $mc_tc = class_type 'Math::Complex';
26 coerce 'LaTeX::TikZ::Point::Autocoerce'
27 => from 'Math::Complex'
28 => via { LaTeX::TikZ::Point->new(x => $_->Re, y => $_->Im); };
32 Vincent Pit, C<< <perl at profvince.com> >>, L<http://www.profvince.com>.
34 You can contact me by mail or on C<irc.perl.org> (vincent).
38 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>.
39 I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
43 You can find documentation for this module with the perldoc command.
47 =head1 COPYRIGHT & LICENSE
49 Copyright 2010,2011,2012,2013,2014,2015 Vincent Pit, all rights reserved.
51 This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
55 1; # End of LaTeX::TikZ::Point::Math::Complex