DSpContext_GlobalToLocal
Use the DSpContext_GlobalToLocal function to translate a point in global coordinates into local coordinates for a context.
OSStatus DSpContext_GlobalToLocal ( DSpContextReference inContext, Point *ioPoint);
inContext
- A reference to the context whose local coordinates you want to translate into.
ioPoint
- Takes a point in global coordinates. On exit, contains the point in local coordinates.
- function result
- A result code.
DESCRIPTION
You pass the DSpContext_GlobalToLocal function a point in global coordinates in theioPoint
parameterand the context in which the point is located in the
inContext
parameter. The function returns, in theioPoint
parameter, the point in the context's local coordinates.CALLING RESTRICTIONS
Do not call this function during an interrupt.