Be a Supporter!
mikeMarek
mikeMarek
  • Member since: Jan. 24, 2008
  • Offline.
Forum Stats
Member
Level 03
Blank Slate
Intervals Feb. 3rd, 2013 @ 04:28 PM Reply

I'm developing a sort of DNA-like graphics drawing and I'm trying to use a scale to make objects appear in an out of the screen. Using a cos() or sin() function, returning an interval of <bold>[-1, 1]</bold>, I'm trying to transpose that interval over to one such as <bold>[0.5, 2]</bold>, which I can then set my scaleX and scaleY values of my movieclips accordingly.

Is there any sort of mathematical representation I can use to represent this? Such as incorporating inter minimum and maximum values? Thanks for any help on the matter,
- Mike


BBS Signature
milchreis
milchreis
  • Member since: Jan. 11, 2008
  • Offline.
Forum Stats
Member
Level 26
Programmer
Response to Intervals Feb. 3rd, 2013 @ 05:15 PM Reply

Try multiplication and addition.