Skip to content

Commit b559cfa

Browse files
committed
EuclidAxes more concise calculation
1 parent 2950d7d commit b559cfa

File tree

1 file changed

+2
-2
lines changed
  • lib/PDL/Graphics/TriD

1 file changed

+2
-2
lines changed

lib/PDL/Graphics/TriD/GL.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,9 @@ sub PDL::Graphics::TriD::EuclidAxes::togl {
110110
glDisable(GL_LIGHTING);
111111
my $ndiv = 4;
112112
my $line_coord = zeroes(3,3)->append(my $id3 = identity(3));
113-
my $starts = zeroes($ndiv+1)->xlinvals(0,1)->transpose->append(zeroes(2,$ndiv+1));
113+
my $starts = zeroes(1,$ndiv+1)->ylinvals(0,1)->append(zeroes(2,$ndiv+1));
114114
my $ends = $starts + append(0, ones 2) * -0.1;
115-
my $dupseq = sequence(3)->dummy(0,$ndiv+1)->flat;
115+
my $dupseq = yvals($ndiv+1,3)->flat;
116116
$_ = $_->dup(1,3)->rotate($dupseq) for $starts, $ends;
117117
$line_coord = $line_coord->glue(1, $starts->append($ends));
118118
my $axisvals = zeroes(3,$ndiv+1)->ylinvals($this->{Scale}->dog)->transpose->flat->transpose;

0 commit comments

Comments
 (0)