#11272: cube(center, size=0.5) does not return a cube centered at center
-------------------------+--------------------------------------------------
    Reporter:  slabbe    |         Owner:  jason, was                   
        Type:  defect    |        Status:  needs_review                 
    Priority:  major     |     Milestone:  sage-4.7.1                   
   Component:  graphics  |    Resolution:                               
    Keywords:  cube      |   Work_issues:                               
    Upstream:  N/A       |      Reviewer:  Sébastien Labbé, Johan Bosman
      Author:            |        Merged:                               
Dependencies:            |  
-------------------------+--------------------------------------------------
Changes (by slabbe):

  * status:  new => needs_review


Old description:

> The center of the cube is affected by the argument size :
>
> {{{
> sage: c = cube(center=(10,10,10), size=0.5)
> sage: c.bounding_box()
> ((4.75, 4.75, 4.75), (5.25, 5.25, 5.25))
> }}}
>
> The intended behavior is that the center is independant of the size:
>
> {{{
> sage: c = cube((10,10,10), size=0.5)
> sage: c.bounding_box()
> ((9.75, 9.75, 9.75), (10.25, 10.25, 10.25))
> }}}

New description:

 The center of the cube is affected by the argument size :

 {{{
 sage: c = cube(center=(10,10,10), size=0.5)
 sage: c.bounding_box()
 ((4.75, 4.75, 4.75), (5.25, 5.25, 5.25))
 }}}

 The intended behavior is that the center is independant of the size:

 {{{
 sage: c = cube((10,10,10), size=0.5)
 sage: c.bounding_box()
 ((9.75, 9.75, 9.75), (10.25, 10.25, 10.25))
 }}}

 For the patchbot : Apply trac_11272-doctest.patch

--

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11272#comment:9>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to