Important: The information in this document is obsolete and should not be used for new development.
|
|
Log In | Not a Member? |
Contact ADC |
Number Formats and Constants
QuickDraw GX providesFixed,fract, andgxColorValuenumber formats. Polar coordinates are defined by thegxPolarstructure. A structure consisting of twolongvalues defines thewidenumber format.
typedef long fract; typedef unsigned short gxColorValue; struct gxPolar { Fixed radius; Fixed angle; }; struct wide { long hi; unsigned long lo; };For convenience, QuickDraw GX provides constants for the value 1.0 forFixed,fract, andgxColorValuetypes:
#define fixed1 ((Fixed) 0x00010000) #define fract1 ((fract) 0x40000000) #define gxColorValue1 ((gxColorValue) 0xFFFF)QuickDraw GX also provides constants for the largest and smallest possible values forFixedandfractnumbers:
#define gxPositiveInfinity ((Fixed) 0x7FFFFFFF) #define gxNegativeInfinity ((Fixed) 0x80000000)
Get information on Apple products.
Visit the Apple Store online or at retail locations. 1-800-MY-APPLE Copyright © 2007 Apple Inc. All rights reserved. | Terms of use | Privacy Notice |