File: TGeometry.pm

package info (click to toggle)
libclass-trait-perl 0.31-1
  • links: PTS
  • area: main
  • in suites: squeeze, wheezy
  • size: 364 kB
  • ctags: 156
  • sloc: perl: 2,467; makefile: 46
file content (42 lines) | stat: -rw-r--r-- 366 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42

use strict;
use warnings;

package TGeometry;

use Class::Trait 'base';

our @REQUIRES = qw(
  getCenter
  setCenter
  getRadius
  setRadius
);

sub area {
    my ($self) = @_;

    # ...
}

sub bounds {
    my ($self) = @_;

    # ...
}

sub diameter {
    my ($self) = @_;

    # ...
}

sub scaleBy {
    my ( $self, $magnitude ) = @_;

    # ...
}

1;

__DATA__