Taffeta/Transform/Affine2D/Scaling.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::Scaling;
3 # ABSTRACT: A 2D affine scaling
4 $Intertangle::Taffeta::Transform::Affine2D::Scaling::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(Vec2);
9  
10 extends qw(Intertangle::Taffeta::Transform::Affine2D);
11  
12 has scale => (
13 is => 'ro',
14 isa => Vec2,
15 coerce => 1,
16 required => 1,
17 );
18  
19 lazy matrix => method() {
20 my $matrix = Intertangle::Yarn::Graphene::Matrix->new;
21 $matrix->init_scale( $self->scale->x, $self->scale->y, 1 );
22 $matrix;
23 }, isa => InstanceOf['Intertangle::Yarn::Graphene::Matrix'];
24  
25 1;
26  
27 __END__