EasyManuals Logo

Texas Instruments TI-89 Developer's Guide

Texas Instruments TI-89
1398 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #657 background imageLoading...
Page #657 background image
Appendix A: System Routines — Graphing
615
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
YCvtFtoP
Declaration:
SSHORT
YCvtFtoP
(BCD16
y
, GR_WIN_VARS *
ptr
)
Category:
Graphing
Description:
Converts the input floating point y coordinate to a pixel row number based
on the specified graph viewing window.
Inputs:
y
Floating point y coordinate. Valid
y
is not limited to the actual
viewing window, allowing computation of off-screen pixels above
(negative) or below the visible window.
ptr
Pointer to the GR_WIN_VARS struct to use for viewing window
values (
gr_active
for the active graph window,
gr_other
for the
second graph in two graph mode).
Outputs:
Returns a pixel row number or GXY_INVALID if the value computed is
outside the range of SSHORT. The topmost row in a window is row 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, XCvtFtoP
Example:
/* convert float coordinates to pixel coordinates and plot point on the pixel */
col = XCvtFtoP( x, gr_active ); /* find pixel column */
row = YCvtFtoP( y, gr_active ); /* find pixel row */
WinPixSet( gr_active->grwinp, col, row ); /* plot point */

Table of Contents

Other manuals for Texas Instruments TI-89

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments TI-89 and is the answer not in the manual?

Texas Instruments TI-89 Specifications

General IconGeneral
Display size (HxV)100 x 160 mm
Memory type639K FLASH ROM, 188K bytes RAM
Compatible operating systemsOperating System 2.09
Battery typeAAA

Related product manuals