occlusion
Description
Examples
Create a tracking scenario object.
scene = trackingScenario;
Specify the terrain and define the boundary of the terrain as a square centered at the origin.
terrrain =[0 10 0;
0 10 0;
0 10 0];
boundary = [-100 100; -100 100];Create the ground surface and add it to the scenario.
surface = groundSurface(scene,Terrain=terrrain,Boundary=boundary)
surface =
GroundSurface with properties:
Terrain: [3×3 double]
ReferenceHeight: 0
Boundary: [2×2 double]
Query the occlusion status of the line-of-sight vector between the corner point (–100, –100, 0) and the other corner point (100, 100, 20). The ground surface occludes the line-of-sight.
occlusion(surface,[-100 -100 0],[100 100 20])
ans = logical
0
Raise the height of the first corner point. Now the ground surface no longer occludes the line-of-sight.
occlusion(surface,[-100 -100 10],[100 100 20])
ans = logical
0
Input Arguments
Ground surface, specified as a GroundSurface object.
Position of the first point, specified as a three-element real-valued vector.
If the IsEarthCentered property of the trackingScenario object is specified as:
false— Specify the three elements, in meters, as the x-, y-, and z-coordinates of the position in the reference frame of the tracking scenario.true— Specify the three elements as the latitude in degrees, longitude in degrees, and altitude in meters of the position, in the geodetic frame.
Data Types: single | double
Position of the second point, specified as a three-element real-valued vector.
If the IsEarthCentered property of the trackingScenario object is specified as:
false— Specify the three elements, in meters, as the x-, y-, and z-coordinates of the position in the reference frame of the tracking scenario.true— Specify the three elements as the latitude in degrees, longitude in degrees, and altitude in meters of the position, in the geodetic frame.
Data Types: single | double
Output Arguments
Occlusion status, returned as a logical 1 (true) or
0 (false). If true, the line-of-sight between
the two positions is occluded by the surface. Otherwise, this argument returns
false.
Version History
Introduced in R2022a
See Also
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
- América Latina (Español)
- Canada (English)
- United States (English)
ヨーロッパ
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)