=head1 VERSION
-Version 0.01
+Version 0.02
=cut
-our $VERSION = '0.01';
+our $VERSION = '0.02';
use LaTeX::TikZ::Point;
use Any::Moose;
use Any::Moose 'Util::TypeConstraints';
-with 'LaTeX::TikZ::Set::Op';
+=head1 RELATIONSHIPS
+
+This class consumes the L<LaTeX::TikZ::Set::Path> role, and as such implements the L</path> method.
+
+=cut
+
+with 'LaTeX::TikZ::Set::Path';
+
+=head1 ATTRIBUTES
+
+=head2 C<point>
+
+The L<LaTeX::TikZ::Point> object representing the underlying geometrical point.
+
+=cut
has 'point' => (
is => 'ro',
isa => 'LaTeX::TikZ::Point::Autocoerce',
required => 1,
coerce => 1,
- handles => [ qw/x y/ ],
+ handles => [ qw<x y> ],
);
+=head2 C<label>
+
+An optional label for the point.
+
+=cut
+
has 'label' => (
is => 'rw',
isa => 'Maybe[Str]',
default => undef,
);
+=head2 C<pos>
+
+The position of the label around the point.
+
+=cut
+
enum 'LaTeX::TikZ::Set::Point::Positions' => (
'below left',
'below',
=> from 'LaTeX::TikZ::Set::Point'
=> via { $_->point };
+=head1 METHODS
+
+=head2 C<path>
+
+=cut
+
sub path {
my ($set, $tikz) = @_;
$path;
}
+=head2 C<begin>
+
+=cut
+
+sub begin { $_[0]->point }
+
+=head2 C<end>
+
+=cut
+
+sub end { $_[0]->point }
+
LaTeX::TikZ::Interface->register(
point => sub {
shift;
__PACKAGE__->meta->make_immutable;
+=head1 SEE ALSO
+
+L<LaTeX::TikZ>, L<LaTeX::TikZ::Set::Path>.
+
=head1 AUTHOR
Vincent Pit, C<< <perl at profvince.com> >>, L<http://www.profvince.com>.