On Dec 11, 2013, at 4:17 PM, Dave Fernandes <dave.fernan...@utoronto.ca> wrote:

> Is there any way to zoom in just one dimension?

Not really. You could put a counter transform before drawing that eliminates 
the opposite direction (and the aforementioned sample should show how to find 
out the current zoom level) but thats not really a satisfying solution...

> 
> On Dec 11, 2013, at 6:05 PM, David Duncan <david.dun...@apple.com> wrote:
> 
>> On Dec 11, 2013, at 8:05 AM, Jeffrey Oleander <jgo...@yahoo.com> wrote:
>> 
>>> * (The posted snippet from sample code was as clear as mud to me.  Why 
>>> powers of 4 (and -4) instead of 5 when we're talking about 5 levels of 
>>> detail?
>>> 1/(2^2) - 2^2 = (1/4) - 4  means "...levelsOfDetail" should be set to 5?!? 
>>> It needs more words, more context.)
>> 
>> 
>> The base level of detail is a zoom level of 2^0 (1 level of detail only 
>> allows for a single representation like that). Each additional level of 
>> detail is a zoom level half that size smaller (thus a 2nd level if 2^-1x or 
>> 1/2x, then 2^-2x or 1/4x, etc). The bias adds to the base level’s exponent, 
>> thus a bias of 2 means the base level if 2^2x (4x) zoom instead of 2^0x zoom.
>> 
>> There are no powers of 4, (or 5 or any other except for 2). The level of 
>> detail is range of the exponent, not the base.
>> --
>> David Duncan
>> 
>> _______________________________________________
>> 
>> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
>> 
>> Please do not post admin requests or moderator comments to the list.
>> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>> 
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/cocoa-dev/dave.fernandes%40utoronto.ca
>> 
>> This email sent to dave.fernan...@utoronto.ca

--
David Duncan

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to