Trigonometric calculation camera Coverage area method

Source: Internet
Author: User
Tags square root

The contents of the previous post record are implemented using algorithms (AS2.0)

function calculates the visible radius (Specify pitch angle: number, specify Tower height: number) {
If (Specify tower height <=0) return 10; The height of the tower in the forest is 0 meters, which is considered to be 10 meters.

Tower height H, earth radius r, place name arc length = square root 2RH
Earth average radius r=6371004; Meters
Visible meter distance =math.sqrt (2*6371004* specified tower height);

Specifies that the gimbal pitch angle be recorded at a Cartesian coordinate system angle. Initialize to positive x axis (i.e. 0 degrees), down to negative angle, tilt upward as positive angle
Specifies the pitch angle%=360; So that its value must be within a circular range
if (Specify Pitch angle >=0| | Specify Pitch angle <=-180)
{
Webcam to day
return visible meter distance;
}
According to the provisions (actual), the pitch angle is generally negative, ZWJ
Trigonometric Functions meters distance =math.tan (math.pi* (90+ specified pitch angle)/180) * Specify tower height;//angle to radians

Returns the smaller
if (Trigonometric meter distance < visible meter distance)
{
return trigonometric meter distance;
}
Else
{
return visible meter distance;
}

}

which uses trigonometric functions to calculate the camera coverage radius r is as follows, h for the camera installation height,


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.