Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
x3domlet
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
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
Elphel
x3domlet
Commits
7af5d8cb
Commit
7af5d8cb
authored
Nov 13, 2018
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tested E^2 calced via eigen vs short formula
parent
ae181bee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
x3dom_deltas.js
js/x3dom_deltas.js
+10
-1
No files found.
js/x3dom_deltas.js
View file @
7af5d8cb
...
@@ -166,7 +166,7 @@ function x3dom_delta_markers(){
...
@@ -166,7 +166,7 @@ function x3dom_delta_markers(){
E
=
E
.
multComponents
(
new
x3dom
.
fields
.
SFVec3f
(
1
/
es_a
,
1
/
es_b
,
1
/
es_c
));
E
=
E
.
multComponents
(
new
x3dom
.
fields
.
SFVec3f
(
1
/
es_a
,
1
/
es_b
,
1
/
es_c
));
console
.
log
(
E
.
toString
());
console
.
log
(
E
.
toString
());
console
.
log
(
E
.
length
()
*
E
.
length
());
console
.
log
(
"E^2 from eigen: "
+
E
.
length
()
*
E
.
length
());
// scale the result ellipsoid so it with touch another marker
// scale the result ellipsoid so it with touch another marker
// and it did - it only tests that the scale is correct
// and it did - it only tests that the scale is correct
...
@@ -177,6 +177,15 @@ function x3dom_delta_markers(){
...
@@ -177,6 +177,15 @@ function x3dom_delta_markers(){
Oz
:
RES
.
e2
().
multiply
(
E
.
length
()
*
es_c
)
Oz
:
RES
.
e2
().
multiply
(
E
.
length
()
*
es_c
)
},
transparency
=
0.7
);
},
transparency
=
0.7
);
// alternative calculations where E^2 = delta^T x C^-1 x delta
var
delta
=
e1_c
.
subtract
(
e2_c
);
var
Ci
=
C
.
inverse
();
var
Ci_x_delta
=
Ci
.
multMatrixVec
(
delta
);
var
E2
=
delta
.
dot
(
Ci_x_delta
);
console
.
log
(
"E^2 from d^T x C^-1 x d: "
+
E2
);
return
0
;
return
0
;
}
}
...
...
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