basic math prob - flash
- Started
- Last post
- 6 Responses
- goygoygoy
I'm trying to put a relation between the ._height of a clip and the ._y of an other clip.
the thing I know is that if
._y = 211
than ._height = 3
and if
._y = 359
than ._height = 150I guess this is about a function of first degree (literal traduction from french) . but not sure.
==> f(x)= ax+banyone knows how can I build that relation ?
Unfortunately, my interest for mathematics has come with flash. bad student. got so much regrets know :.(thks in advance
- connerd0
so to clarify.. you need a function that says
_y is to _height
as
211 is to 3
as
359 is to 150... right?
- goygoygoy0
well I would say:
a function that says
(if that makes any difference)
_height is to _y
as
3 is to 211
as
150 is to 359
...
- connerd0
right so.. thinking back to gr. 1o math, let me see here..
that means the slope of your line would have to be
359 - 211
-----------
150 - 3therfore
y 148
- = ----
h 147so you could solve for y with
y = h(148/147);
and solve for h with
h = (148/147) / y;
that should work.. i think.
- goygoygoy0
thks for the help connerd.
I'll see it, and mostly trying to understand how you did it.
But actually I found an other easier way to solve it, without using math. (hehe)
btw:very unusual site you've there, nice! cheers
- connerd0
thanks :)
- ********0
unfittoprint, he can rescue your ass.