EasyManuals Logo
Home>Texas Instruments>Calculator>TI-89

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 #650 background imageLoading...
Page #650 background image
608
Appendix A: System Routines — Graphing
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
GrClipLine
(continued)
Example:
This example is the TI
-
BASIC Line command. It draws a line (coordinates:
L1, L2, L3, L4) on the current graph using attribute newAttr. The source for
the helper routine, GetAttr, is listed in the example for
GraphActivate
.
GrClipLine
is used to clip the given floating point coordinates to the current
graph window.
void cmd_line (EStackIndex L1, EStackIndex L2, EStackIndex L3,
EStackIndex L4, EStackIndex newAttr)
{
Access_AMS_Global_Variables;
BYTE OrigAttr;
BCD16 x1, y1, x2, y2;
if (GraphActivate(TRUE)) {
OrigAttr = WinAttr(gr_active->grwinp, GetAttr(newAttr) );
if (GrClipLine( ForceFloat(L1), ForceFloat(L2),
ForceFloat(L3), ForceFloat(L4),
&x1, &y1, &x2, &y2, gr_active))
WinLine( gr_active->grwinp, MakeWinRect(
XCvtFtoP(x1,gr_active), YCvtFtoP(y1,gr_active),
XCvtFtoP(x2,gr_active), YCvtFtoP(y2,gr_active)));
WinAttr( gr_active->grwinp, OrigAttr );
}
}

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