Questions tagged [curve]

In mathematics, a curve (also called a curved line in older texts) is, generally speaking, an object similar to a line but which is not required to be straight.

1306 questions
0
votes
3 answers

where my curve pass a certain threshold

I thought this would be simple but I'm having real difficulty. I could use excel or R, whatever gets it done. I just need to know when these curves pass a certain value. I tried adding in an extra line to my charts to see if there was an…
Colin
  • 161
  • 1
  • 1
  • 7
0
votes
2 answers

Bézier curve compute point from one axis

I have a Cubic Bézier curve. But I have a problem when I need only one point. I have only value from the X-axis and want to find a value that coresponds to Y-axis to that point. Or find the t step, from it I can easely calculate the Y-axis. Any clue…
Vlg
  • 3
  • 1
0
votes
1 answer

How to draw tangent line at specified points in a curve in Matlab

I am having a an array of points x,y and respective angles at those specified points. I want to plot a tangent line at those points, i am unable to figure out how to proceed. http://postimg.org/image/s2y1pqqaj/ As shown in command window 1st column…
mony
  • 3
  • 1
  • 6
0
votes
1 answer

iPhone Quartz curve jaggy and has dark border

I've got a weird issue with quartz. The first time I run the piece of code below, the line will be drawn like the line to the right in the image. The second time (and every time after) these lines are executed, the line will look like the line to…
quano
  • 18,812
  • 25
  • 97
  • 108
0
votes
1 answer

AS3 Change curve to Symbol Hitbox

I have two draggable objects, and when your drag one them it generates a line based off where your mouse is, and the line is anchored to the other object. What Id like this code to do, is generate the line at the rear of the symbol I got this but…
Tropzilla
  • 25
  • 7
0
votes
1 answer

AS3 change line curve

I have this end part of my code, I simply need to it to bend in the opposite directon. It creates a line from a point to the mouse that curves up. I need it to curve down. What values would I change to do this? if ((mouseX-targetPointX<0 &&…
Tropzilla
  • 25
  • 7
0
votes
0 answers

Thresholding curve cutoffs

How might I go about trying to detect the knee point for families of curves similar to this one? I've tried fitting to exponentials, logs, rationals - but I'm still not sure where I would progress onwards from there. I've tried detecting inflection…
Luke Chang
  • 149
  • 1
  • 1
  • 9
0
votes
0 answers

How to get the degree of a curve from points using JavaScript?

While I don't fully understand the math behind it I'm able to draw curves on an HTML5 canvas using createjs and filling in my values: bezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y); Now what I'd like to do is take a dynamic set of user drawn points…
Joshua
  • 1,260
  • 3
  • 17
  • 33
0
votes
1 answer

How to find the x,y coordinates in a curve passing only the normalized position (from 0 to 1)

Given a curve represented by two arrays with the elements not equally spaced: x = np.array([ 1.54, 0.73, 0.45, 0.25, 0.18, 0.14, 0.11, 0.10, 0.11, 0.15, 0.37, 0.74 ]) y = np.array([-1., -0.60, -0.39, -0.19, -0.10, 0.01, 0.11, 0.21, 0.31, 0.41, 0.72,…
Saullo G. P. Castro
  • 56,802
  • 26
  • 179
  • 234
0
votes
1 answer

Transparent Pixels on bottom corners of UIImage?

I am trying to make my image transparent on corners at the bottom so as to support a face curved look. I have tried with the following code but CGPathAddArc is a bit confusing as I am not much of a math bluff. Red corners as shown in image defines…
hemant
  • 1,771
  • 4
  • 31
  • 43
0
votes
2 answers

Curve calculate Y when X is known

The Question Okay so basically what I'm trying to do, is calculating the Y location on a Cubic Curve / Bezier Curve / Spline when the X location is given. I've searched everywhere on Stack Overflow and Google and I could find anything that actually…
vallentin
  • 23,478
  • 6
  • 59
  • 81
0
votes
1 answer

How to create in a series multiple data each in a different yaxis using highcharts

I'm working on a project to register pump curves in a MySQL database. So I'm trying to create the closest possible one chart with 3 yAxis (H, NPSH, Power) and 2 xAxis (flow and efficiency). I uploaded a pump curve image here for better…
0
votes
1 answer

Android, Why my custom square ImageView on emulator has curve corner while on real device doesn't have?

I need to have square image view with curved corner. Everything seems okay and Preview of IntelliJ Idea shows it's working fine. However corners are not curve when I run it on real device. My custom ImgeView: public class SquareImageView extends…
Hesam
  • 52,260
  • 74
  • 224
  • 365
0
votes
2 answers

How to put text in a circular div?

I need to have a div (Pink Color Area) with some text in it. See the image Below
GajendraSinghParihar
  • 9,051
  • 11
  • 36
  • 64
0
votes
1 answer

Drawing semi-transparent curves in OpenGL ES

My goal is to draw a semi-transparent curve. User moves cursor and I draw the curve under the cursor. I've tried to use antialiased points to draw line, but I don't know how to make it transparent. I can't use lines to draw the curve, because can't…
Evgeny Shurakov
  • 6,062
  • 2
  • 28
  • 22