Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSUnionRect



As documented, http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_Functions/Reference/reference.html#/ /apple_ref/c/func/NSUnionRect. Basically a 0 by 0 rectangle is considered to be non-existent for purposes of unioning; this enables a number of rect operations to be performed in tandem.

Returns the smallest rectangle that completely encloses both aRect and bRect. If one of the rectangles has 0 (or negative) width or height, a copy of the other rectangle is returned; but if both have 0 (or negative) width or height, the returned rectangle has its origin at (0.0, 0.0) and has 0 width and height.

Ali




Begin forwarded message:

From: Gordon Apple <email@hidden>
Date: March 2, 2007 11:23:50  PST
To: email@hidden
Subject: NSUnionRect

   The list search is dead tonight.

What's with NSUnionRect? I am getting a result of (0,0,0,0) when
evaluating NSUnionRect with (0,600,0,0) and (400,600,0,0). The correct
result should be (0,600,400,0). I was trying to use it to compute the
bounding rect of a polygon. I wrote my own to make it work right.


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >NSUnionRect (From: Gordon Apple <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.