curve

How to calculate point along a curve?

I am writing a custom animation for wpf and as a non math guy I have a couple questions... If I am given two Point3D's, the From and To, and assuming the origin is at 0,0,0 how do I calculate a curve between the two points? And once I have the curve 'plotted' and I know its length (how to do that too?) how can I calculate the x,y,z coo...

Java2D: Fill a convex rounded polygon (QuadCurves)

Hi, If I have a QuadCurve like this (+ = node): + + \ ./ +--⁻⁻ And I fill it in Java 2D the result is something like this: (x = colored) +xxxxxxxxx+ \xxxxxx./ +--⁻⁻ But I want to color the other side: + + x\ ./x xxx +--⁻⁻xx xxxxxxxxxxx This succeeds by drawing a rectangle around the curve in th...

Curvey Redraw tabs working fine on Firefox , problem with IE

Hi, I have used curvey redraw library from google code(http://code.google.com/p/curvycorners/) & it has solved my purpose, though now as per new req i am struggling with IE. I want to have two tab rows each containing 2 tabs. <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org...

"too many threads error" in blackberry OS-4.5

hi in my application i have 20 icons(bitmap fields) on the home screen When i click on any icon an HTTP request is made in a separate thread. I have used invoke later method wherever necessary to take care of multi-threading problems. But still the number of threads goes beyond 16 and an error pops up indicating too many threads error ...

Thick Bezier Curves in OpenGL

Hi all, I am writing a program in java using the jogl opengl bindings. I need to create a bezier curve that varies in thickness along the curve. So far I've only managed a thin bezier curve of single points. I'm pretty sure that this isnt going to be an easy thing to do, but i I have no idea where to even begin looking for the solution. ...

how I can compare two curved line in two picture?

Hi there I have 2 picture that there is two line,I want to compare there two curved line and know how much they are similar together...I use Mathlab for programming and also use Image process package. Thank's in advance Photo Album [URL=http://www.photoalbum-2day.com/image.php?i=31873-jpg][IMG=http://www.photoalbum-2day.com/images/000...

Most efficient way to find min and max of a sin/cos curve in C#

Background: I have a function in my program that takes a set of points and finds the minimum and maximum on the curve generated by those points. The thing is it is incredibly slow as it uses a while loop to figure out the min/max based on approximated error. Not completely sure what formal method this is because I did not write it myself...

Plotting a smoothed area on a map from a set of points in R

Hi, how do I plot an area around a set of points on a map in R? e.g. map('world') map.axes() p <- matrix(c(50, 50, 80, 100, 70, 40, 25, 60), ncol=2) # make some points points(p, pch=19, col="red") polygon(p, col="blue") ... which gives me a polygon with a vertex at each of the points, but it looks rather crappy. Is there any way to "...

[AS3] curveTo finding the curve point dynamically

Hi Everybody, My math knowledge has never been very broad, so this maybe a simple question but I'm not really sure. Basically I'm using the curveTo function to draw some lines for flight paths, what I'm not sure how to do is dynamically finding the curve points, so for example if you look at the ryan air site: http://www.ryanair.com/en/...

Calculating an area under a continuous density plot

I have two density curves plotted using this: Network <- Mydf$Networks quartiles <- quantile(Mydf$Avg.Position, probs=c(25,50,75)/100) density <- ggplot(Mydf, aes(x = Avg.Position, fill = Network)) d <- density + geom_density(alpha = 0.2) + xlim(1,11) + opts(title = "September 2010") + geom_vline(xintercept = quartiles, colour = "red"...

Web based curve sketching API/app?

Hi, Are there any web services/apps for plotting curves? Something similar to the Google Chart API, but for general mathematical curves, e.g. x^2, the exponential function, maybe even functions of two variables, etc.. I am interested in either an API provider or an HTML5/Flash-based online tool. Thanks! ...

How to create a level with curved lines with cocos2d + Box2d on the iphone?

Hello, I'd like to create a game that has levels such as this: http://img169.imageshack.us/img169/7294/picdq.png The Player moves "flies" through the level and mustn't collide with the walls. How can I create such levels? I found that piece of software: http://www.sapusmedia.com/levelsvg/ It's not that cheap, so I wonder whether the...