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
30942f4d
Commit
30942f4d
authored
Jun 10, 2017
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed a couple of obsolete functions
parent
eb32da4a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
31 deletions
+6
-31
util_functions.js
js/util_functions.js
+5
-2
x3dom_functions.js
js/x3dom_functions.js
+1
-29
No files found.
js/util_functions.js
View file @
30942f4d
...
@@ -41,6 +41,7 @@ function convert_color_l2x(color){
...
@@ -41,6 +41,7 @@ function convert_color_l2x(color){
/*
/*
* azimuth by geo coords
* azimuth by geo coords
*/
*/
/*
function getAzimuth2(p1,p2){
function getAzimuth2(p1,p2){
//p1 - start point
//p1 - start point
...
@@ -57,10 +58,11 @@ function getAzimuth2(p1,p2){
...
@@ -57,10 +58,11 @@ function getAzimuth2(p1,p2){
return azimuth;
return azimuth;
}
}
*/
/*
/*
* azimuth by canvas coords
* azimuth by canvas coords
*/
*/
/*
function getAzimuth(p1_ll,p2_ll){
function getAzimuth(p1_ll,p2_ll){
var Camera = Map.marker;
var Camera = Map.marker;
...
@@ -76,3 +78,4 @@ function getAzimuth(p1_ll,p2_ll){
...
@@ -76,3 +78,4 @@ function getAzimuth(p1_ll,p2_ll){
return azimuth;
return azimuth;
}
}
*/
\ No newline at end of file
js/x3dom_functions.js
View file @
30942f4d
...
@@ -35,34 +35,6 @@
...
@@ -35,34 +35,6 @@
* for the JavaScript code in this page.
* for the JavaScript code in this page.
*/
*/
/**
* output in units (meters)
*/
function
x3dom_getViewTranslation
(
elem
){
var
vp_mat
=
elem
.
runtime
.
viewMatrix
().
inverse
();
var
vp_translation
=
vp_mat
.
e3
();
return
vp_translation
;
}
/**
* output in degrees
*/
function
x3dom_getViewDirection
(
elem
){
var
vp_mat
=
elem
.
runtime
.
viewMatrix
();
var
vMatInv
=
vp_mat
.
inverse
();
var
viewDir
=
vMatInv
.
multMatrixVec
(
new
x3dom
.
fields
.
SFVec3f
(
0.0
,
0.0
,
-
1.0
));
var
angle
=
Math
.
atan2
(
viewDir
.
x
,
-
viewDir
.
z
)
*
180
/
Math
.
PI
;
return
angle
;
}
/**
/**
* get position and orientation in the 3D scene defined by mouse's canvas x,y
* get position and orientation in the 3D scene defined by mouse's canvas x,y
*/
*/
...
@@ -341,7 +313,7 @@ function x3dom_altelev(alt,elev){
...
@@ -341,7 +313,7 @@ function x3dom_altelev(alt,elev){
}
}
/**
/**
* back and forth conversions for test
purpose
s
* back and forth conversions for tests
*/
*/
function
x3dom_matrix_test
(){
function
x3dom_matrix_test
(){
...
...
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