• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
Bartenders:

Urgent help needed

 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
I have 8 X and Y points which may or mayn't be linear.I wanted to draw curve which passes through closest points. Can any body expain me? ( example would be great help).
I also like to know if I have 2 points (x1,y1) and (x2,y2), how to draw bezier curve? I was thinking of drawing bezier curve between 2 points and joing that with next curve with (x2,y2) and (x3,y3).
Thanks,
padmashree
 
Ranch Hand
Posts: 152
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


I have 8 X and Y points which may or mayn't be linear.I wanted to draw curve which passes through closest
points. Can any body expain me? ( example would be great help).


You need a resource on numerical methods. I have done
this sort of thing in FORTRAN, but not in a long while.
Java is certainly capable, but I don't believe that
it have any built in support. Try a Google search
for Java and numerical methods or Java and curve fitting.


I also like to know if I have 2 points (x1,y1) and (x2,y2), how to draw bezier curve? I was thinking of drawing
bezier curve between 2 points and joing that with next curve with (x2,y2) and (x3,y3).


The best explanation of beziers that I have seen is
in the O'Reilly book on SVG. There might be good
information in the results of the sbove Google search,
too.
IBM once had a project called NINJA, for Numerically
Intensive Java (or something like that). If it's
still out there, I'd bet there's a lot of good stuff
there.
BTW, my fortune at login on one of my Linux boxes
last week said,
"FORTRAN is for pipe stress freaks and
crystallography weenies."
LOL!
HTH,
Joe
 
No matter how many women are assigned to the project, a pregnancy takes nine months. Much longer than this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic