Click or drag to resize

DistanceToPrimitiveDisplayCondition Constructor (Primitive, Double, Double)

Initializes a distance to primitive display condition with the inclusive distance interval [minimumDistance, maximumDistance]. When this display condition is assigned to an object, such as a screen overlay, the object is only rendered when the distance, in meters, from the camera to the Primitive, is within the interval.

Namespace:  AGI.Foundation.Graphics
Assembly:  AGI.Foundation.Graphics (in AGI.Foundation.Graphics.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax
public DistanceToPrimitiveDisplayCondition(
	Primitive primitive,
	double minimumDistance,
	double maximumDistance
)

Parameters

primitive
Type: AGI.Foundation.GraphicsPrimitive
The primitive associated with this instance.
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
ExceptionCondition
ArgumentOutOfRangeExceptionminimumDistance and maximumDistance must be greater than or equal to zero.
See Also