our $VERSION = '0.01';
+use LaTeX::TikZ::Set::Point;
+
use Any::Moose;
with 'LaTeX::TikZ::Set::Op';
has 'from' => (
is => 'ro',
- does => 'LaTeX::TikZ::Point',
+ isa => 'LaTeX::TikZ::Set::Point',
required => 1,
+ coerce => 1,
);
has 'to' => (
is => 'ro',
- does => 'LaTeX::TikZ::Point',
+ isa => 'LaTeX::TikZ::Set::Point',
required => 1,
+ coerce => 1,
);
sub path {
$set->from->path(@_) . ' -- ' . $set->to->path(@_);
}
-use LaTeX::TikZ::API line => sub {
+use LaTeX::TikZ::Interface line => sub {
shift;
__PACKAGE__->new(from => $_[0], to => $_[1]);