Re: Trouble deriving values from a matrix



Okay, the more I study this, the more I see what a royal mess
I've made of the whole thing. Even the function I posted earlier has
a significant typo (see how mat.c changes) ... so I'm going to crawl
back into my private little cave and try to hide my shame. If nothing
else, I hope I've given the regulars here a chuckle. Sincerely. ;)
I couldn't have done a much worse job at communicating my problem.

function makeFillMatrix(x, y, w, h, r) {
var maxSize = 1638.4;
var scaleX = w/maxSize;
var scaleY = h/maxSize;
var mat = new Object();
mat.a = Math.round(Math.cos(r)*scaleX*1000)/1000;
mat.b = Math.round(Math.sin(r)*scaleX*1000)/1000;
mat.c = -Math.round(Math.sin(r)*scaleY*1000)/1000;
mat.d = Math.round(Math.cos(r)*scaleY*1000)/1000;
mat.tx = x + w/2;
mat.ty = y + h/2;
return mat;
}
.



Relevant Pages

  • Re: how to assign to var in module from script
    ... you gotta admit that is confusing perldoc on my machine is different from ... have me on that point...but as it is, the words "var in module" refer to the ... okay you got me there, I'll be more specific...did you skip the ...
    (comp.lang.perl.modules)
  • Re: how to assign to var in module from script
    ... you gotta admit that is confusing perldoc on my machine is different from ... have me on that point...but as it is, the words "var in module" refer to the ... okay you got me there, I'll be more specific...did you skip the ...
    (comp.lang.perl.modules)
  • Re: debugger enhancements
    ... Dennis Passmore schrieb: ... procedure TForm1.Button1Click(Sender: TObject); ... Okay, but I think it's poorly documented and still not quite what I ...
    (borland.public.delphi.non-technical)
  • Perferred way to create object
    ... var Person = { ... sayHello: function{ ... While both is okay, I see a trend more and more people is using method ... 1, any reason? ...
    (comp.lang.javascript)
  • RE: New to Perl
    ... why do u have to assign to a var and print? ... Okay... ... BTW.: You might also just try to enter ... at your terminal prompt. ...
    (perl.beginners)

Loading