Xcvtftop - Texas Instruments TI-89 Developer's Manual

Graphing calculator
Hide thumbs Also See for TI-89:
Table of Contents

Advertisement

Appendix A: System Routines — Graphing

XCvtFtoP

Declaration:
SSHORT XCvtFtoP (BCD16 x , GR_WIN_VARS * ptr )
Category:
Graphing
Description:
Converts the input floating point x coordinate to a pixel column number
based on the specified graph viewing window.
x
Inputs:
ptr — Pointer to the GR_WIN_VARS struct to use for viewing window
Outputs:
Returns a pixel column number or GXY_INVALID if the value computed is
outside the range of SSHORT. The leftmost column in a window is
column 0.
Assumptions:
Assumes an x, y coordinate system, even in 3D mode.
Side Effects:
None
Availability:
All versions of the TI-89 / TI-92 Plus.
TI-89 / TI-92 Plus
Differences:
None
See Also:
XCvtPtoF, CptFuncX, YCvtPtoF, YCvtFtoP
Example:
/* convert float coordinates to pixel coordinates and plot point on the pixel */
col = XCvtFtoP( x, gr_active );
row = YCvtFtoP( y, gr_active );
WinPixSet( gr_active->grwinp, col, row );
TI-89 / TI-92 Plus Developer Guide
— Floating point x coordinate. Valid x is not limited to the actual
viewing window, allowing computation of off-screen pixels to the
left (negative) or right of the visible window.
values (gr_active for the active graph window, gr_other for the
second graph in two graph mode).
/* find pixel column */
/* find pixel row */
Not for Distribution
/* plot point */
613
Beta Version January 26, 2001

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ti-92 plusTi-92 plus

Table of Contents