Taffeta/Transform/Affine2D/Translation.pm untested

filter: Statementstmt 0.0% 0 / 24 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 29 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 use Renard::Incunabula::Common::Setup;
2 package Intertangle::Taffeta::Transform::Affine2D::Translation;
3 # ABSTRACT: A 2D affine translation
4 $Intertangle::Taffeta::Transform::Affine2D::Translation::VERSION = '0.001';
5 use Mu;
6 use Intertangle::Yarn::Graphene;
7 use Renard::Incunabula::Common::Types qw(InstanceOf);
8 use Intertangle::Yarn::Types qw(Point);
9  
10 extends qw(Intertangle::Taffeta::Transform::Affine2D);
11  
12 has translate => (
13 is => 'ro',
14 isa => Point,
15 coerce => 1,
16 required => 1,
17 );
18  
19 lazy matrix => method() {
20 my $matrix = Intertangle::Yarn::Graphene::Matrix->new;
21 $matrix->init_translate( $self->translate->to_Point3D );
22 $matrix;
23 }, isa => InstanceOf['Intertangle::Yarn::Graphene::Matrix'];
24  
25 1;
26  
27 __END__