octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #44904] rectint gives incorrect result when re


From: Carnë Draug
Subject: [Octave-bug-tracker] [bug #44904] rectint gives incorrect result when rectangles overlap in X but not in Y
Date: Wed, 22 Apr 2015 19:35:08 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.6.0

URL:
  <http://savannah.gnu.org/bugs/?44904>

                 Summary: rectint gives incorrect result when rectangles
overlap in X but not in Y
                 Project: GNU Octave
            Submitted by: carandraug
            Submitted on: Wed 22 Apr 2015 07:35:06 PM GMT
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.0.0-rc3
        Operating System: Any

    _______________________________________________________

Details:

I have the following case where rectint is giving an incorrect result:


octave> rectint ([0 0 5 5], [6 6 5 5])
ans = 0
octave> rectint ([0 0 5 5], [6 0 5 5])
ans = 0
octave> rectint ([0 0 5 5], [0 6 5 5])
ans =  5


This should be 0 in all cases. The logic of the function is a bit convoluted
but I already have a complete rewrite that fixes this and adds support for N
dimensions. (this gives me a bug number to use on the commit message :p)




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?44904>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]