This forum has been archived. All content is frozen. Please use KDE Discuss instead.

About sizes() in AlignedBox

Tags: None
(comma "," separated)
stzpz
Registered Member
Posts
1
Karma
0

About sizes() in AlignedBox

Sat Oct 11, 2014 10:16 pm
The document of sizes() says tha "Note that this function does not get the same result for integral or floating scalar types". What does it mean here? Does it mean that for integral type like AlignedBox1i, the sizes() would be max() - min() + 1 instead of max() - min()? But the result returned is still max() - min().

Thanks.
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS

Re: About sizes() in AlignedBox

Mon Oct 13, 2014 3:19 pm
Good question, I've no idea. As you said, it is a shortcut for max() - min() regardless of the scalar type.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]