[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #65641] 'view' produces incorrect viewpoint wh
From: |
Nicholas Jankowski |
Subject: |
[Octave-bug-tracker] [bug #65641] 'view' produces incorrect viewpoint when given a vector aligned with the X axis |
Date: |
Thu, 25 Apr 2024 09:39:11 -0400 (EDT) |
Follow-up Comment #2, bug #65641 (group octave):
for the 3 cases, the output of
[az, el] = cart2sph (x(1,x(2),x(3));
az *= 180/pi;
x = [0 -1 0]
az = -90
el = 0
x = [1 0 0]
az = 0
el = 0
x = [1 0.001 0]
az = 0.05726
el = 0
after that calculation, view applies:
if (az != 0)
az += 90; # Special fix for bug #57800
endif
resulting in:
x = [0 -1 0]
az = 0
el = 0
x = [1 0 0]
az = 0
el = 0
x = [1 0.001 0]
az = 90.057
el = 0
matlab 2023b produces the same output from cart2sph, but view([1,0,0]) does
result in a view of the short (5) wide ellipse section:
>> view([0,-1,0])
>> [az,el]=view
az =
0
el =
0
>> view([1,0,0])
>> [az,el]=view
az =
90
el =
0
>> view([1,0.001,0])
>> [az,el]=view
az =
90.0573
el =
0
so it seems the bug #57800 fix isn't quite hitting the mark.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?65641>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #65641] 'view' misbehaves when given a vector aligned with the X axis, anonymous, 2024/04/25
- [Octave-bug-tracker] [bug #65641] 'view' produces incorrect viewpoint when given a vector aligned with the X axis,
Nicholas Jankowski <=
- [Octave-bug-tracker] [bug #65641] 'view' misbehaves when given a vector aligned with the X axis, Markus Mützel, 2024/04/25
- [Octave-bug-tracker] [bug #65641] 'view' produces incorrect viewpoint when given a vector aligned with the X axis, Nicholas Jankowski, 2024/04/25
- [Octave-bug-tracker] [bug #65641] 'view' produces incorrect viewpoint when given a vector aligned with the X axis, Nicholas Jankowski, 2024/04/25
- [Octave-bug-tracker] [bug #65641] 'view' produces incorrect viewpoint when given a vector aligned with the X axis, Markus Mützel, 2024/04/25
- [Octave-bug-tracker] [bug #65641] 'view' produces incorrect viewpoint when given a vector aligned with the X axis, Nicholas Jankowski, 2024/04/25
- [Octave-bug-tracker] [bug #65641] 'view' produces incorrect viewpoint when given a vector aligned with the X axis, Markus Mützel, 2024/04/25
- [Octave-bug-tracker] [bug #65641] 'view' produces incorrect viewpoint when given a vector aligned with the X axis, Markus Mützel, 2024/04/25
- [Octave-bug-tracker] [bug #65641] 'view' produces incorrect viewpoint when given a vector aligned with the X axis, Nicholas Jankowski, 2024/04/25
- [Octave-bug-tracker] [bug #65641] 'view' produces incorrect viewpoint when given a vector aligned with the X axis, Markus Mützel, 2024/04/25
- [Octave-bug-tracker] [bug #65641] 'view' produces incorrect viewpoint when given a vector aligned with the X axis, Nicholas Jankowski, 2024/04/25