e-Mail 

Password 

Signup Free!

Home
Search
Top Ten

Categories
Algorithms
API
Apple Mac
Audio
C#
Child Windows
Common Controls
Common Dialog Boxes
Controls
Data Storage
Design Patterns
File I/O
File Structure
GDI
Graphics
GUI
Hardware
Managed C++
MCI
Memory
Memory Management
Multimedia
Multiple-Document Interface
Multithreading
Networking
OOP
Resources
SDL
Search Algorithms
Text
Visual Studio
Visual Studio 2005
Windows
Windows Files
WinInet

Related Links
ASPToday
Code Project
Bear Cave
MSDN
Joel on Software
Navigation and Zooming in Mathematical Graphs
and coordinate conversions

Article Stats
Skill Level 5
Expert - 10 5
Beginner - 1
Author: Corey Nakamura
Date: 6/1/2007
Category: Algorithms
User Ratings:

Total Ratings: 0 
Innovative
Complete
Helpful
0/10
0/10
0/10


Abstract:
My project dealt with calculating mathematical equations and graphing them onto 
the screen.  GDI methods, such as LineTo and SetPixel use pixel coordinates for 
the drawing.  I needed a way to easily convert between the pixel and Cartesian 
coordinate systems.

Windows API provides different mapping modes and one of them allows you to set 
your own style.  The width, height, and the origin of the window’s units may be 
specified.  However, the scaling is limited to integers, and graphs usually 
require decimals with many digits of precision.

Logon to read this entire article
Or sign up for an account FREE!