DistanceToPositionDisplayCondition Constructor (ReferenceFrame, Cartesian, Double, Double) |
Initializes a distance display condition with the inclusive distance interval
[
minimumDistance,
maximumDistance]. When this
display condition is assigned to an object, such as a
primitive,
the object is only
rendered
when the distance, in meters, from the camera to the position is within the interval.
Namespace:
AGI.Foundation.Graphics
Assembly:
AGI.Foundation.Graphics (in AGI.Foundation.Graphics.dll) Version: 25.2.423.0 (25.2.423.0)
Syntaxpublic DistanceToPositionDisplayCondition(
ReferenceFrame referenceFrame,
Cartesian position,
double minimumDistance,
double maximumDistance
)
Public Sub New (
referenceFrame As ReferenceFrame,
position As Cartesian,
minimumDistance As Double,
maximumDistance As Double
)
public:
DistanceToPositionDisplayCondition(
ReferenceFrame^ referenceFrame,
Cartesian position,
double minimumDistance,
double maximumDistance
)
new :
referenceFrame : ReferenceFrame *
position : Cartesian *
minimumDistance : float *
maximumDistance : float -> DistanceToPositionDisplayConditionParameters
- referenceFrame
- Type: AGI.Foundation.GeometryReferenceFrame
The reference frame of the position.
- position
- Type: AGI.Foundation.CoordinatesCartesian
The position used to compute the distance from the camera.
- minimumDistance
- Type: SystemDouble
The minimum distance, in meters, of the inclusive distance interval.
- maximumDistance
- Type: SystemDouble
The maximum distance, in meters, of the inclusive distance interval.
Use Double.MaxValue to ignore checking the maximum distance.
Exceptions| Exception | Condition |
|---|
| ArgumentOutOfRangeException | minimumDistance and maximumDistance
must be greater than or equal to zero.
|
| ArgumentNullException | ReferenceFrame is null.
|
Remarksposition is interpreted to be in the
reference frame specified by referenceFrame. This
display condition can be assigned to multiple objects.
See Also