| 1 | package Math::3Space::Projection; | ||||||||||||||||||||||||||||
| 2 | |||||||||||||||||||||||||||||
| 3 | 8 | our $VERSION = '0.008'; # VERSION | |||||||||||||||||||||||||||
| 4 | # ABSTRACT: Object wrapping a 4D projection, for use in OpenGL rendering | ||||||||||||||||||||||||||||
| 5 | |||||||||||||||||||||||||||||
| 6 | # All methods handled by XS | ||||||||||||||||||||||||||||
| 7 | 8 | require Math::3Space; | |||||||||||||||||||||||||||
| 8 | |||||||||||||||||||||||||||||
| 9 | 0 | ▶ | sub new_frustum { shift if !ref $_[0] && $_[0] eq __PACKAGE__; &_frustum } | ||||||||||||||||||||||||||
|
Subroutine
new_frustum: not called CC=3 SCAR=24.8
Pod
documented
Branch: 1 branch
Condition0%0/3
not ref $_[0] and $_[0] eq __PACKAGE__
MC/DC0%0/2
not ref $_[0] and $_[0] eq __PACKAGE__
not ref $_[0]
$_[0] eq __PACKAGE__
Truth table0%0/3
not(A) and B
A= not ref $_[0]B= $_[0] eq __PACKAGE__
| |||||||||||||||||||||||||||||
| 10 | 0 | ▶ | sub new_perspective { shift if !ref $_[0] && $_[0] eq __PACKAGE__; &_perspective } | ||||||||||||||||||||||||||
|
Subroutine
new_perspective: not called CC=3 SCAR=24.8
Pod
documented
Branch: 1 branch
Condition0%0/3
not ref $_[0] and $_[0] eq __PACKAGE__
MC/DC0%0/2
not ref $_[0] and $_[0] eq __PACKAGE__
not ref $_[0]
$_[0] eq __PACKAGE__
Truth table0%0/3
not(A) and B
A= not ref $_[0]B= $_[0] eq __PACKAGE__
| |||||||||||||||||||||||||||||
| 11 | |||||||||||||||||||||||||||||
| 12 | 0 | ▶ | use overload '""' => sub { "[@{[$_[0]->matrix_colmajor]}]" }; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.6
Subroutine
__ANON__: not called CC=1 SCAR=0.6
| |||||||||||||||||||||||||||||
| 13 | |||||||||||||||||||||||||||||
| 14 | 8 | 1; | |||||||||||||||||||||||||||
| 15 | |||||||||||||||||||||||||||||
| 16 | __END__ | ||||||||||||||||||||||||||||