Beruflich Dokumente
Kultur Dokumente
// video page. This class provides a some useful methods you will
// need to call:
//
cameraVideoPage.displayMessage(message, timeout):
//
Causes a short message string to be displayed on the
//
page for a brief period. Useful for showing quick
//
notifications to the user. message is a plain string.
//
timeout is option and denotes the length of time in msec
//
to show the message for.
//
cameraVideoPage.setHeadsUpDisplayHTML(html):
//
This will set or update the heads-up-display with the
//
text given in the html argument. Usually this should
//
just be a string with text and line breaks (<br />).
// Initialise the camera video page and callback to our
// cameraVideoPageInitialised() function when ready.
ApexAngle = beta3;
var Theta = ApexAngle - 90;
// Step 4: Record tilt angle
// display on screen using the displayMessage method
ThetaRad = toRadians(Theta);
height(ThetaRad,cameraHeight,Distance);
cameraVideoPage.displayMessage("Apex Angle(degree): " + ApexAngle);
}
//Distance
function distance(angle,CameraHeight)
{
Distance = cameraHeight * Math.tan(angle);
};
//Height
function height(angle,CameraHeight,distance)
{
Height = +CameraHeight + distance*(Math.tan(angle - Math.PI));
}