WorldWind Source Analysis Series: Outer bounding box, outer surround Ball

Source: Internet
Author: User

The outer bounding box and the outer bounding ball in the pluginsdk are described in class BoundingBox and Boundingsphere respectively, and the class diagram is as follows.

The corners field of the outer bounding box BoundingBox class is used to store the 8 vertex vectors of the outer bounding box. There are two forms of its constructor. The first constructor uses 8 vertex vectors to instantiate an outer bounding box. The second constructor uses the given east, south, west, and North four range values, and the top and bottom two values to instantiate a bounding box by calculating the values of 8 vertex vectors.

The Calculatecenter method is used to calculate the center coordinate vector of the outer bounding box.

The Calcrelativescreenarea method is used to calculate the area of pixels covered by the bottom of an outer bounding box. The camera parent class camerabase is used.

The contents of the outer bounding ball boundingsphere are roughly similar. The main purpose is to calculate the sphere and radius of the outer bounding sphere.

WorldWind Source Analysis Series: Outer bounding box, outer surround Ball

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.