STK Graphics PrimitivesSend comments on this topic.
Depth Property (IAgStkGraphicsPickResult)
See Also
Windows





Windows & Linux

Description

Gets the depth of the picked location in the 3D scene.

Property type

Read-only property

Syntax

[Visual Basic .NET]
Public Property Depth() As Single
[C#]
public float Depth {get;}
[Managed C++]
public: __property float get_Depth();
[Unmanaged C++]
public: HRESULT get_Depth(
    float * pRetVal
);
[Java]
public float getDepth();
[Python - STK API ]
@property
def Depth(self) -> float:

Remarks

Depth is adjusted for rendering with multiple view frustums so it may be outside the range [0, 1] but it will never be negative. Smaller depth values indicate objects closer to the camera.

See Also

© 2024 Analytical Graphics, Inc. All Rights Reserved.