Commit 30942f4d authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

removed a couple of obsolete functions

parent eb32da4a
......@@ -41,6 +41,7 @@ function convert_color_l2x(color){
/*
* azimuth by geo coords
*/
/*
function getAzimuth2(p1,p2){
//p1 - start point
......@@ -57,10 +58,11 @@ function getAzimuth2(p1,p2){
return azimuth;
}
*/
/*
* azimuth by canvas coords
*/
/*
function getAzimuth(p1_ll,p2_ll){
var Camera = Map.marker;
......@@ -75,4 +77,5 @@ function getAzimuth(p1_ll,p2_ll){
return azimuth;
}
\ No newline at end of file
}
*/
\ No newline at end of file
......@@ -35,34 +35,6 @@
* 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
*/
......@@ -341,7 +313,7 @@ function x3dom_altelev(alt,elev){
}
/**
* back and forth conversions for test purposes
* back and forth conversions for tests
*/
function x3dom_matrix_test(){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment