|
|
#define | gxColorValue1 ((gxColorValue)0x0000FFFF) |
| |
|
#define | gxPositiveInfinity ((long)0x7FFFFFFFL) |
| |
|
#define | gxNegativeInfinity ((long)0x80000000L) |
| |
| #define | FixedRound(a) ((short)((Fixed)(a) + fixed1 / 2 >> 16)) |
| |
|
#define | FixedSquareRoot(a) ((Fixed)FractSquareRoot(a) + 64 >> 7) |
| |
|
#define | FixedTruncate(a) ((short)((Fixed)(a) >> 16)) |
| |
|
#define | FixedToFract(a) ((Fract)(a) << 14) |
| |
|
#define | FractToFixed(a) (((Fixed)(a) + 8192L) >> 14) |
| |
|
#define | FixedToInt(a) ((short)(((Fixed)(a) + fixed1 / 2) >> 16)) |
| |
|
#define | IntToFixed(a) ((Fixed)(a) << 16) |
| |
|
#define | FixedToFloat(a) ((float)(a) / fixed1) |
| |
|
#define | FloatToFixed(a) ((Fixed)((float)(a) * fixed1)) |
| |
|
#define | FractToFloat(a) ((float)(a) / fract1) |
| |
|
#define | FloatToFract(a) ((Fract)((float)(a) * fract1)) |
| |
|
#define | ColorToFract(a) (((Fract)(a) << 14) + ((Fract)(a) + 2 >> 2)) |
| |
|
#define | FractToColor(a) ((gxColorValue)((a) - ((a) >> 16) + 8191 >> 14)) |
| |
| #define | ff(a) IntToFixed(a) |
| |
|
#define | fl(a) FloatToFixed(a) |
| |
|
| gxMapping * | CopyToMapping (gxMapping *target, const gxMapping *source) |
| |
| gxMapping * | InvertMapping (gxMapping *target, const gxMapping *source) |
| |
| gxMapping * | MapMapping (gxMapping *target, const gxMapping *source) |
| |
| gxMapping * | MoveMapping (gxMapping *target, Fixed hOffset, Fixed vOffset) |
| |
| gxMapping * | MoveMappingTo (gxMapping *target, Fixed hPosition, Fixed vPosition) |
| |
| gxMapping * | NormalizeMapping (gxMapping *target) |
| |
| gxMapping * | RotateMapping (gxMapping *target, Fixed angle, Fixed xCenter, Fixed yCenter) |
| |
| gxMapping * | ScaleMapping (gxMapping *target, Fixed hFactor, Fixed vFactor, Fixed xCenter, Fixed yCenter) |
| |
| gxMapping * | ResetMapping (gxMapping *target) |
| |
| gxMapping * | SkewMapping (gxMapping *target, Fixed skewX, Fixed skewY, Fixed xCenter, Fixed yCenter) |
| |
| void | MapPoints (const gxMapping *source, long count, gxPoint theVector[]) |
| |
| short | FirstBit (unsigned long x) |
| |
| short | WideScale (const wide *source) |
| |
| short | LinearRoot (Fixed first, Fixed last, Fract t[]) |
| |
| short | QuadraticRoot (Fixed first, Fixed control, Fixed last, Fract t[]) |
| |
| gxPoint * | PolarToPoint (const gxPolar *ra, gxPoint *xy) |
| |
| gxPolar * | PointToPolar (const gxPoint *xy, gxPolar *ra) |
| |
| Fract | FractCubeRoot (Fract source) |
| |
| Fract | FractDivide (Fract dividend, Fract divisor) |
| |
| Fract | FractMultiply (Fract multiplicand, Fract multiplier) |
| |
| Fract | FractSineCosine (Fixed degrees, Fract *cosine) |
| |
| Fract | FractSquareRoot (Fract source) |
| |
| Fixed | FixedDivide (Fixed dividend, Fixed divisor) |
| |
| Fixed | FixedMultiply (Fixed multiplicand, Fixed multiplier) |
| |
| long | MultiplyDivide (long source, long multiplier, long divisor) |
| |
| unsigned long | Magnitude (long deltaX, long deltaY) |
| |
| long | VectorMultiplyDivide (long count, const long *vector1, long step1, const long *vector2, long step2, long divisor) |
| |
| wide * | VectorMultiply (long count, const long *vector1, long step1, const long *vector2, long step2, wide *dot) |
| |
| unsigned long | RandomBits (long count, long focus) |
| |
| void | SetRandomSeed (const wide *seed) |
| |
| wide * | GetRandomSeed (wide *seed) |
| |
QuickDraw GX math routine interfaces.
- Introduced In: Quickdraw GX 1.1
- Avaliable From: Universal Interfaces 3.4.1
- Copyright: © 1994-2001 by Apple Computer, Inc., all rights reserved.
For bug reports, consult the following page on the World Wide Web:
http://developer.apple.com/bugreporter/