use of pfuCalcNormalizedChanXY

New Message Reply Date view Thread view Subject view Author view

Dwight Meglan (dwight++at++ht.com)
Tue, 30 Jan 1996 11:50:54 -0400


Couldn't the helper function pfuCalcNormalizedChanXY have been folded into
the methods of pfChannel ?

It seems to me that you want to use this call in conjunction with
pfChannel.pick most of the time. pfuCalcNormalizedChanXY pulls out the
origin and extents of the channel to normalize the mouse screen
coordinates. It would be cleaner to just call an overloaded version of
pfChannel.pick with either floats or ints for the mouse position -- floats
for already normalized coords and ints for mouse screen coords. This is
probably too obfusicated, but at the least a separate call for pickScreen
and pickNorm would work.

Anyway, I just wondered what the design decision is behind why
pfuCalcNormalizedChanXY is separate from pfChannel.

Thanks,
--dwight

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dwight Meglan, PhD | Developers of complete surgery simulation
Engineering Coordinator | training systems and surgery simulation
High Techsplanations, Inc. | creation software tools
6001 Montrose Rd., Suite 902 |
Rockville, MD 20852-4874 | "Witty, yet erudite saying goes here..."
301 984 3706 x38 |
301 984 2104 : FAX |
dwight++at++ht.com | http://www.ht.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:52:18 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.