X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FLaTeX%2FTikZ%2FSet%2FPoint.pm;h=4cf79921e16fe2d594059a52c69bf094379d3a86;hb=6832c809e7591e1c3e2809654f814c298d28d2ef;hp=2c613d80931c98a306f91cfed289082498db424e;hpb=5adf00c880491bac3bd793a07431cf161c03643f;p=perl%2Fmodules%2FLaTeX-TikZ.git diff --git a/lib/LaTeX/TikZ/Set/Point.pm b/lib/LaTeX/TikZ/Set/Point.pm index 2c613d8..4cf7992 100644 --- a/lib/LaTeX/TikZ/Set/Point.pm +++ b/lib/LaTeX/TikZ/Set/Point.pm @@ -9,38 +9,157 @@ LaTeX::TikZ::Set::Point - A set object representing a point. =head1 VERSION -Version 0.01 +Version 0.02 =cut -our $VERSION = '0.01'; +our $VERSION = '0.02'; + +use LaTeX::TikZ::Point; + +use LaTeX::TikZ::Interface; +use LaTeX::TikZ::Functor; use Any::Moose; +use Any::Moose 'Util::TypeConstraints'; + +=head1 RELATIONSHIPS + +This class consumes the L role, and as such implements the L method. + +=cut -with 'LaTeX::TikZ::Set::Op'; +with 'LaTeX::TikZ::Set::Path'; + +=head1 ATTRIBUTES + +=head2 C + +The L object representing the underlying geometrical point. + +=cut has 'point' => ( is => 'ro', - does => 'LaTeX::TikZ::Point', + isa => 'LaTeX::TikZ::Point::Autocoerce', required => 1, + coerce => 1, + handles => [ qw ], +); + +=head2 C