Re: Matrix Wanted



"John C. Bollinger" wrote

<snip>

Thank you for your elaborate answer to my question. I am working on the
implementation of both solutions you gave in Java and I intend to present it to
the group when finished, but there is one point that I do not understand:


> (vxx, vyx, lx, ly declared and defined)
> The distance from point1 to point 4 is simply lx, but the height is more
> complicated. As an intermediate step, it is useful to compute the
> length of the projection of vy onto vx, which is related to the dot
> product of the above vectors:
>
> l = length(vxx * vyx, vxy * vyy) / lx


How do I implement the length(int,int)-function? Is it a function to start with?

-Martijn


.



Relevant Pages

  • RE: JAVA un z/OS
    ... Additionally in the case of primitive integers, Java has to ... from Little Endian to Big Endian before sending the CPU instruction, ... than back after the instruction is done. ...
    (bit.listserv.ibm-main)
  • Re: StringBuilder Difficulties
    ... and my *guess* is that this is not horribly inefficient if the ... StringBuilder sb = new StringBuilder; ... that seems less optimal than trying to grok the Java mindset. ...
    (comp.lang.java.programmer)
  • Re: StringBuilder Difficulties
    ... in order to use the language. ... You may have noticed that your issues with StringBuilder seem ... The usual solution in Java is to factor out an API into an interface and ...
    (comp.lang.java.programmer)
  • Re: Is a "real" C-Python possible?
    ... I think most Java-Python benchmarks you can find online will indicate ... Java 1.1) piece of a paper if you read past the "benchmark" part. ... (snip rant about Swing memory leaks, ... Don't write large apps ...
    (comp.lang.python)
  • Re: Great SWT Program
    ... Java Search and Plug-in Search. ... to use Eclipse I'd teach them it's internal search tools. ... (command-line tools as well as an IDE) ...
    (comp.lang.java.programmer)