Questions tagged [curves]
129 questions
1
vote
1 answer
interpolation between two curves in R
I have two curves of same count of points filled using approx function, for both x and y values separately for each curve. Both x and y axis values are logarithmic, so I convert back to normal decimal scale when approximating and interpolating.…

saganas
- 555
- 4
- 12
1
vote
1 answer
ImageMagick equivalent to PhotoShop Curves
I am trying to convert some custom image filters with ImageMagic command line from PhotoShop tutorials. I can manage to work out most of it, but when it comes to "Curves", I can't seem to find any information on how to translate the following using…

Chris
- 833
- 2
- 17
- 37
1
vote
1 answer
OpenGL - Help restricting curves to never go out of bounds
I have the following program to draw arcs using Bézier Curves:
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include…

Sasha Fonseca
- 2,257
- 23
- 41
1
vote
2 answers
Inset rounded edges with CSS
Is it possible to do this kind of thing with CSS?
From my Googling, I can't find anything helpful.

JacobTheDev
- 17,318
- 25
- 95
- 158
1
vote
2 answers
longest and shortest curves selected
I'm trying to create a script that will select a bunch of Nurbs curves,
and measure the length of those curves.
So ideally I could select the shortest curve leaving longer curves unselected (or the opposite).
So far i have this:
import maya
import…

pj1138
- 9
- 3
1
vote
0 answers
How to check if two curves intersect in mathematica
I have a set of parametric curves and a reference curve, and I want to see which ones intersect the reference curve.
For example, let's say that the function1's are the parametric curves and function 2 is the reference…
user2292793
1
vote
1 answer
gnuplot plot the curves in file
I have a file with table to plot, every column in file correspond to one curve
for example, file1
N plot1 plot2 plot3
1 2 3 4
2 3 4 5
I run the gnuplot as following
gnuplot -e "set key autotitle columnhead; set title 'file1'; plot…

user16168
- 625
- 2
- 8
- 16
1
vote
2 answers
Draw a curved line from an arc edge
Here's the screenshot of what I am doing. Currently, I'm stuck from drawing a curved borders into this rectangle.
My first solution was: draw a quartered circle behind the rectangle, but if I adjust the opacity of the shape, as you can see, the…

mr5
- 3,438
- 3
- 40
- 57
1
vote
2 answers
Hatching area between two symbolic curves matlab
I need to shade the area between symbolic curves and the x axis.
syms x
j(1) = x^2
j(2) = x^3
j(3) = x^5
j(4) = x^6
for i = 1:4
subplot(2,2,i);
f(i) = ezplot(j(i),[0,6000]);
Hatch(f(i))
end
This gives me an error. After looking in the…

user2817017
- 137
- 1
- 13
1
vote
0 answers
How to continuously draw a Sin function on HTML5 Canvas
I want to draw a wave based on the sin function that is drawn continuously over time. By that I mean that the wave will be sliding off to the left disappearing off the left side of the screen, and at the same time I will be adding to it in the…

MWinstead
- 1,265
- 6
- 12
- 27
1
vote
0 answers
SVG curved path as mask
I'm trying to use a curved path as a mask (Top right corner should be round). The svg is correctly rendered in current browsers but when I convert the svg to PDF or an image the curve gets lost. I have tried Inkscape, ImageMagick and rsvg-convert.…

dan
- 5,377
- 13
- 39
- 44
1
vote
2 answers
hit ground values for 2d Jump 'n' e. g. groundline
I'm trying to programm a Android Jump 'n' Run and I'm stuck in the general logic.
I want a groundline or bottomlevel that isn't straight. It should be like a curve, or
hills and valleys (compare the Game Limbo). Is there any mathematical structure…

Xerusial
- 525
- 1
- 5
- 17
1
vote
1 answer
gluLookAt Issues
I've been trying to create a roller coaster simulator in OpenGL which uses a series of gluLookAt calls to make the camera 'ride' the roller coaster. The coaster itself is based on a b-spline curve with control points in the coords array. b0(u),…

JMcMinn
- 275
- 3
- 10
0
votes
1 answer
Finding difference of two plots in C#
I am having a laser scanner application where I want to find the difference between two plots ,one the reference plot without object and the other with the object in view.I am plotting the graph with x y coordinates. currently I have plotted the…

ShivShambo
- 523
- 12
- 29
0
votes
0 answers
Using curved lines instead of straight lines in an engine
I've noticed that 3D engines tend to have more difficulty rendering curved lines (as in, it takes longer). Why does it use straight lines?
My Idea:
Have the engine use all curved lines, a curved line can be a straight line (i.e. a curved line with…

Freesnöw
- 30,619
- 30
- 89
- 138