I do n’t know if this grammar is written like this For help


  • krpano.spheretospace(h,v,depth)

    Code
    <action name="getlanguagebrowser" type="Javascript" autorun="preinit"><![CDATA[
    	krpano.set("events.onclick", function(){
    		var x = krpano.get("mouse.x");
    		var y = krpano.get("mouse.y");
    		var z = "1000";
    		var position = krpano.spacetosphere(x,y,z);
    		krpano.trace(1,"ath=" + (position.h).toFixed(3) + " / " + "atv=" + position.v + " / "  + "depth=" + position.depth);
    	});
      ]]></action>

    krpano.spacetosphere(x,y,z)

    Are these two grammars written like this?

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!