=head1 VERSION
-Version 0.01
+Version 0.02
=cut
-our $VERSION = '0.01';
+our $VERSION = '0.02';
use Any::Moose;
use Any::Moose 'Util::TypeConstraints' => [ qw/
register_type_constraint
/ ];
+=head1 ATTRIBUTES
+
+=head2 C<x>
+
+The abscissa of the point.
+
+=cut
+
has 'x' => (
is => 'ro',
isa => 'Num',
required => 1,
);
+=head2 C<y>
+
+The ordinate of the point.
+
+=cut
+
has 'y' => (
is => 'ro',
isa => 'Num',
=> from 'LaTeX::TikZ::Point'
=> via { $_ };
+coerce 'LaTeX::TikZ::Point::Autocoerce'
+ => from 'Num'
+ => via { LaTeX::TikZ::Point->new(x => $_, y => 0) };
+
+coerce 'LaTeX::TikZ::Point::Autocoerce'
+ => from 'ArrayRef'
+ => via { LaTeX::TikZ::Point->new(x => $_->[0], y => $_->[1]) };
+
__PACKAGE__->meta->make_immutable;
+=head1 SEE ALSO
+
+L<LaTeX::TikZ>.
+
=head1 AUTHOR
Vincent Pit, C<< <perl at profvince.com> >>, L<http://www.profvince.com>.