Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
C
CurvedLines
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
HS-public
CurvedLines
Commits
de933903
Commit
de933903
authored
Jul 01, 2011
by
Michael Zinsmaier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
v0.15 negative values should work now (outcommented a negative -> 0 hook hope it does no harm)
parent
9e1d5244
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
curvedLines.js
curvedLines.js
+4
-3
No files found.
curvedLines.js
View file @
de933903
...
...
@@ -74,6 +74,7 @@ _____________________________________________________
/*
* v0.1 initial commit
* v0.15 negative values should work now (outcommented a negative -> 0 hook hope it does no harm)
*
*
*/
...
...
@@ -327,9 +328,9 @@ _____________________________________________________
var
b
=
(
xnew
[
j
]
-
xdata
[
min
])
/
h
;
ynew
[
j
]
=
a
*
ydata
[
min
]
+
b
*
ydata
[
max
]
+
((
a
*
a
*
a
-
a
)
*
y2
[
min
]
+
(
b
*
b
*
b
-
b
)
*
y2
[
max
])
*
(
h
*
h
)
/
6
;
if
(
ynew
[
j
]
<
0.01
){
ynew
[
j
]
=
0
;
}
//
if (ynew[j] < 0.01){
//
ynew[j] = 0;
//
}
result
.
push
(
xnew
[
j
]);
result
.
push
(
ynew
[
j
]);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment